btrfs: move btrfs_full_stripe_locks_tree into block-group.h
authorJosef Bacik <josef@toxicpanda.com>
Wed, 14 Sep 2022 23:04:38 +0000 (19:04 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:28:06 +0000 (12:28 +0200)
commitc29abab4f9edf843ccbfa9a552a58a12c41d2ce4
treeb1bfeaf7fb3bd217e9a6a4b4e61ec263b8c49725
parent16708a889867a77fb3f72820fe5046db9e437eee
btrfs: move btrfs_full_stripe_locks_tree into block-group.h

This is actually embedded in struct btrfs_block_group, so move this
definition to block-group.h, and then open-code the init of the tree
where we init the rest of the block group instead of using a helper.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
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/block-group.h
fs/btrfs/ctree.h