OSDN Git Service

btrfs: turn delayed_nodes_tree into an XArray
authorGabriel Niebler <gniebler@suse.com>
Tue, 26 Apr 2022 09:43:04 +0000 (11:43 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:16 +0000 (17:03 +0200)
commit253bf57555e451dec5a7f09dc95d380ce8b10e5b
tree10deeea6290ca98bd6b4f9dcc2f4952675da7ada
parent719fae8920e4f42643ea306b95addb40bec87a25
btrfs: turn delayed_nodes_tree into an XArray

… in the btrfs_root struct and adjust all usages of this object to use
the XArray API, because it is notionally easier to use and understand,
as it provides array semantics, and also takes care of locking for us,
further simplifying the code.

Also use the opportunity to do some light refactoring.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Gabriel Niebler <gniebler@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/delayed-inode.c
fs/btrfs/disk-io.c
fs/btrfs/inode.c