]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: turn fs_roots_radix in btrfs_fs_info into an XArray
authorGabriel Niebler <gniebler@suse.com>
Tue, 3 May 2022 10:44:43 +0000 (12:44 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:15:57 +0000 (17:15 +0200)
commit7b43ebbc2ebda688166cf5bcf38266573475ee19
tree63c4cda90a430112b147d0a480f76b2dd5235655
parent6a959c1b4a88385965b337778fb09e748f64aec0
btrfs: turn fs_roots_radix in btrfs_fs_info into an XArray

… rename it to simply fs_roots 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 do some refactoring, esp. where the API change requires largely
rewriting some functions, anyway.

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/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/tests/btrfs-tests.c
fs/btrfs/transaction.c