]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add a btrfs_block_group_root() helper
authorJosef Bacik <josef@toxicpanda.com>
Fri, 5 Nov 2021 20:45:36 +0000 (16:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:47 +0000 (15:09 +0100)
commitd0755d5cb0599c130fac6e0fae4687c0ff8543a6
treeff53ef7a123ce4bbfe552c44f6b54d17e4738d9c
parent5ec661299cb6159f59f5e05f93a342a5376529e8
btrfs: add a btrfs_block_group_root() helper

With extent tree v2 we will have a separate root to hold the block group
items.  Add a btrfs_block_group_root() that will return the appropriate
root given the flags of the fs, and convert all functions that need to
modify block group items to use the helper.

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/block-group.c
fs/btrfs/disk-io.h