public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1 v2] Convert btrfs_root::delayed_nodes_tree to xarray
@ 2023-12-06 14:16 David Sterba
  2023-12-06 14:16 ` [PATCH 1/1 v2] btrfs: switch btrfs_root::delayed_nodes_tree to xarray from radix-tree David Sterba
  0 siblings, 1 reply; 4+ messages in thread
From: David Sterba @ 2023-12-06 14:16 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

v2:
- rework it so we can still use GFP_NOFS for allocation, emulating the
  preload mechanism with the xarray API, no changes to locking needed
- tested with error injections instead of xa_reserve()

v1:

This restarts the radix-tree to xarray conversion that we had to revert.
There are two more structures to convert, possibly with also spinlock to
mutex conversions needed (buffer_radix and fs_roots_radix), but for the
buffer radix I don't want to do now as we have the folio conversion
ongoing. The fs_roots will most likely need the lock conversion so
that's a change that I want to take the whole dev cycle, planned for 6.9.

David Sterba (1):
  btrfs: switch btrfs_root::delayed_nodes_tree to xarray from radix-tree

 fs/btrfs/ctree.h         |  6 ++--
 fs/btrfs/delayed-inode.c | 64 ++++++++++++++++++++++------------------
 fs/btrfs/disk-io.c       |  3 +-
 fs/btrfs/inode.c         |  2 +-
 4 files changed, 41 insertions(+), 34 deletions(-)

-- 
2.42.1


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

end of thread, other threads:[~2023-12-06 16:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-06 14:16 [PATCH 0/1 v2] Convert btrfs_root::delayed_nodes_tree to xarray David Sterba
2023-12-06 14:16 ` [PATCH 1/1 v2] btrfs: switch btrfs_root::delayed_nodes_tree to xarray from radix-tree David Sterba
2023-12-06 15:52   ` Filipe Manana
2023-12-06 16:19     ` Filipe Manana

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