]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit8ee922689d67b7cfa6acbe2aa1ee76ac72e6fc8a
tree8744bf4ab772288a578b6fe96d698e4e34560752
parent4076942021fe14efecae33bf98566df6dd5ae6f7
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