public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/18] btrfs: convert delayed head refs to xarray and cleanups
@ 2024-10-24 16:24 fdmanana
  2024-10-24 16:24 ` [PATCH 01/18] btrfs: remove BUG_ON() at btrfs_destroy_delayed_refs() fdmanana
                   ` (21 more replies)
  0 siblings, 22 replies; 31+ messages in thread
From: fdmanana @ 2024-10-24 16:24 UTC (permalink / raw)
  To: linux-btrfs

From: Filipe Manana <fdmanana@suse.com>

This converts the rb-tree that tracks delayed ref heads into an xarray,
reducing memory used by delayed ref heads and making it more efficient
to add/remove/find delayed ref heads. The rest are mostly cleanups and
refactorings, removing some dead code, deduplicating code, move code
around, etc. More details in the changelogs.

Filipe Manana (18):
  btrfs: remove BUG_ON() at btrfs_destroy_delayed_refs()
  btrfs: move btrfs_destroy_delayed_refs() to delayed-ref.c
  btrfs: remove fs_info parameter from btrfs_destroy_delayed_refs()
  btrfs: remove fs_info parameter from btrfs_cleanup_one_transaction()
  btrfs: remove duplicated code to drop delayed ref during transaction abort
  btrfs: use helper to find first ref head at btrfs_destroy_delayed_refs()
  btrfs: remove num_entries atomic counter from delayed ref root
  btrfs: change return type of btrfs_delayed_ref_lock() to boolean
  btrfs: simplify obtaining a delayed ref head
  btrfs: move delayed ref head unselection to delayed-ref.c
  btrfs: pass fs_info to functions that search for delayed ref heads
  btrfs: pass fs_info to btrfs_cleanup_ref_head_accounting
  btrfs: assert delayed refs lock is held at find_ref_head()
  btrfs: assert delayed refs lock is held at find_first_ref_head()
  btrfs: assert delayed refs lock is held at add_delayed_ref_head()
  btrfs: add comments regarding locking to struct btrfs_delayed_ref_root
  btrfs: track delayed ref heads in an xarray
  btrfs: remove no longer used delayed ref head search functionality

 fs/btrfs/backref.c     |   3 +-
 fs/btrfs/delayed-ref.c | 319 +++++++++++++++++++++++++----------------
 fs/btrfs/delayed-ref.h |  61 +++++---
 fs/btrfs/disk-io.c     |  79 +---------
 fs/btrfs/disk-io.h     |   3 +-
 fs/btrfs/extent-tree.c |  69 ++-------
 fs/btrfs/transaction.c |   8 +-
 7 files changed, 256 insertions(+), 286 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2024-10-29 20:49 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-24 16:24 [PATCH 00/18] btrfs: convert delayed head refs to xarray and cleanups fdmanana
2024-10-24 16:24 ` [PATCH 01/18] btrfs: remove BUG_ON() at btrfs_destroy_delayed_refs() fdmanana
2024-10-24 16:24 ` [PATCH 02/18] btrfs: move btrfs_destroy_delayed_refs() to delayed-ref.c fdmanana
2024-10-24 16:24 ` [PATCH 03/18] btrfs: remove fs_info parameter from btrfs_destroy_delayed_refs() fdmanana
2024-10-24 16:24 ` [PATCH 04/18] btrfs: remove fs_info parameter from btrfs_cleanup_one_transaction() fdmanana
2024-10-24 16:24 ` [PATCH 05/18] btrfs: remove duplicated code to drop delayed ref during transaction abort fdmanana
2024-10-24 16:24 ` [PATCH 06/18] btrfs: use helper to find first ref head at btrfs_destroy_delayed_refs() fdmanana
2024-10-24 16:24 ` [PATCH 07/18] btrfs: remove num_entries atomic counter from delayed ref root fdmanana
2024-10-24 16:24 ` [PATCH 08/18] btrfs: change return type of btrfs_delayed_ref_lock() to boolean fdmanana
2024-10-24 16:24 ` [PATCH 09/18] btrfs: simplify obtaining a delayed ref head fdmanana
2024-10-24 16:24 ` [PATCH 10/18] btrfs: move delayed ref head unselection to delayed-ref.c fdmanana
2024-10-24 16:24 ` [PATCH 11/18] btrfs: pass fs_info to functions that search for delayed ref heads fdmanana
2024-10-24 16:24 ` [PATCH 12/18] btrfs: pass fs_info to btrfs_cleanup_ref_head_accounting fdmanana
2024-10-24 16:24 ` [PATCH 13/18] btrfs: assert delayed refs lock is held at find_ref_head() fdmanana
2024-10-24 16:24 ` [PATCH 14/18] btrfs: assert delayed refs lock is held at find_first_ref_head() fdmanana
2024-10-24 16:24 ` [PATCH 15/18] btrfs: assert delayed refs lock is held at add_delayed_ref_head() fdmanana
2024-10-24 16:24 ` [PATCH 16/18] btrfs: add comments regarding locking to struct btrfs_delayed_ref_root fdmanana
2024-10-24 16:24 ` [PATCH 17/18] btrfs: track delayed ref heads in an xarray fdmanana
2024-10-24 18:55   ` Boris Burkov
2024-10-25 10:41     ` Filipe Manana
2024-10-25 18:38     ` David Sterba
2024-10-24 16:24 ` [PATCH 18/18] btrfs: remove no longer used delayed ref head search functionality fdmanana
2024-10-24 18:57 ` [PATCH 00/18] btrfs: convert delayed head refs to xarray and cleanups Boris Burkov
2024-10-25 13:19 ` Johannes Thumshirn
2024-10-25 13:35   ` Filipe Manana
2024-10-25 13:46     ` Johannes Thumshirn
2024-10-25 21:17     ` Qu Wenruo
2024-10-28 11:17       ` Filipe Manana
2024-10-25 18:34 ` David Sterba
2024-10-28 20:55 ` Qu Wenruo
2024-10-29 20:49   ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox