]> 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)
commitb6255fe95023d318b26393dca0eb1dbf74863eb2
tree8744bf4ab772288a578b6fe96d698e4e34560752
parent3b262b4aed49814eab74884336029f6dcae44ebb
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