diff options
author | Josef Bacik <josef@toxicpanda.com> | 2022-09-15 01:04:38 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-09-26 12:28:06 +0200 |
commit | c29abab4f9edf843ccbfa9a552a58a12c41d2ce4 (patch) | |
tree | b1bfeaf7fb3bd217e9a6a4b4e61ec263b8c49725 /fs/btrfs/block-group.h | |
parent | btrfs: move btrfs_caching_type to block-group.h (diff) | |
download | linux-c29abab4f9edf843ccbfa9a552a58a12c41d2ce4.tar.xz linux-c29abab4f9edf843ccbfa9a552a58a12c41d2ce4.zip |
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>
Diffstat (limited to 'fs/btrfs/block-group.h')
-rw-r--r-- | fs/btrfs/block-group.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/btrfs/block-group.h b/fs/btrfs/block-group.h index f21a34d719c5..8fb14b99a1d1 100644 --- a/fs/btrfs/block-group.h +++ b/fs/btrfs/block-group.h @@ -76,6 +76,14 @@ struct btrfs_caching_control { /* Once caching_thread() finds this much free space, it will wake up waiters. */ #define CACHING_CTL_WAKE_UP SZ_2M +/* + * Tree to record all locked full stripes of a RAID5/6 block group + */ +struct btrfs_full_stripe_locks_tree { + struct rb_root root; + struct mutex lock; +}; + struct btrfs_block_group { struct btrfs_fs_info *fs_info; struct inode *inode; |