Skip to content

Convert btrfs_root::delayed_nodes_tree to xarray

David Sterba linux-btrfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 2 repliesIn review
  2. v12 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- 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()

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1btrfs: switch btrfs_root::delayed_nodes_tree to xarray from radix-treefs/btrfs/ctree.h fs/btrfs/delayed-inode.c fs/btrfs/disk-io.c +1 more+41 -342 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchFilipe Manana
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH 0/1 v2] Convert btrfs_root::delayed_nodes_tree to xarray

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(-)
Signature · 1 line
2.42.1