]> 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)
commit7e221baa59eefef52e8a9c60ed0f153a60017f93
tree10deeea6290ca98bd6b4f9dcc2f4952675da7ada
parent153e22121548d1b0af58c775c58c90763c19ddda
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