]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: turn fs_info member buffer_radix into XArray
authorGabriel Niebler <gniebler@suse.com>
Thu, 21 Apr 2022 15:45:38 +0000 (17:45 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:16 +0000 (17:03 +0200)
commit6a959c1b4a88385965b337778fb09e748f64aec0
tree8744bf4ab772288a578b6fe96d698e4e34560752
parent0f373d162ff5f93978a6414c58fe68a1bc7b55cd
btrfs: turn fs_info member buffer_radix into XArray

… named 'extent_buffers'. Also adjust all usages of this object to use
the XArray API, which greatly simplifies the code as it takes care of
locking and is generally easier to use and understand, providing
notionally simpler array semantics.

Also perform 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/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/tests/btrfs-tests.c