]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: stop accessing ->free_space_root directly
authorJosef Bacik <josef@toxicpanda.com>
Fri, 5 Nov 2021 20:45:49 +0000 (16:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:49 +0000 (15:09 +0100)
commitde56ea3fc9bd4285d40655882de829c43b31db58
treeb0a801826cea941124130edebcbfa3834c93c2a0
parentd7c1c3bd7ee6bafced736869b00d6f176ce61a0b
btrfs: stop accessing ->free_space_root directly

We're going to have multiple free space roots in the future, so adjust
all the users of the free space root to use a helper to access the root.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/free-space-tree.c
fs/btrfs/tests/free-space-tree-tests.c