]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit502e1d9fb7de355941ee57d013e1ed929b4aa765
tree10deeea6290ca98bd6b4f9dcc2f4952675da7ada
parentfa06dbe1896b71c08abf6ebbdba464b8cd313a18
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