Turn delayed_nodes_tree into XArray and adjust usages
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | Turn delayed_nodes_tree into delayed_nodes_xarray in btrfs_rootfs/ fs/ fs/ +1 more | +8 | 1 reply | |
| 2/6 | btrfs_get_delayed_node: convert to using XArray APIfs/ | +4 | 0 replies | |
| 3/6 | btrfs_get_or_create_delayed_node: convert to using XArray APIfs/ | +5 | 0 replies | |
| 4/6 | __btrfs_release_delayed_node: convert to using XArray APIfs/ | +1 | 0 replies | |
| 5/6 | btrfs_kill_all_delayed_nodes: convert to using XArray APIfs/ | +12 | 0 replies | |
| 6/6 | __setup_root: convert to using XArray API for delayed_nodes_xarrayfs/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] Turn delayed_nodes_tree into XArray and adjust usages
XArrays offer a somewhat nicer API than radix trees and were implemented specifically to replace the latter. They utilize the exact same underlying data structure, but their API is notionally easier to use, as it provides array semantics to the user of radix trees. The higher level API also takes care of locking, adding even more ease of use.
The btrfs code uses radix trees directly in several places, such as for the delayed_nodes_radix member of the btrfs_root struct.
This patchset converts delayed_nodes_radix into an XArray, renames it accordingly and adjusts all usages of this object to the XArray API. It survived a complete fstests run.
Gabriel Niebler (6):
Turn delayed_nodes_tree into delayed_nodes_xarray in btrfs_root
btrfs_get_delayed_node: convert to using XArray API btrfs_get_or_create_delayed_node: convert to using XArray API __btrfs_release_delayed_node: convert to using XArray API btrfs_kill_all_delayed_nodes: convert to using XArray API __setup_root: convert to using XArray API for delayed_nodes_xarray
fs/btrfs/ctree.h | 4 ++-- fs/btrfs/delayed-inode.c | 48 ++++++++++++++++++---------------------- fs/btrfs/disk-io.c | 2 +- fs/btrfs/inode.c | 2 +- 4 files changed, 26 insertions(+), 30 deletions(-)
Signature · 1 line
2.35.1