btrfs: convert block group bit field to use bit helpers
We use a bit field in the btrfs_block_group for different flags, however this is awkward because we have to hold the block_group->lock for any modification of any of these fields, and makes the code clunky for a few of these flags. Convert these to a properly flags setup so we can utilize the bit helpers. Reviewed-by:Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by:
Josef Bacik <josef@toxicpanda.com> Reviewed-by:
David Sterba <dsterba@suse.com> Signed-off-by:
David Sterba <dsterba@suse.com>
Showing
- fs/btrfs/block-group.c 15 additions, 10 deletionsfs/btrfs/block-group.c
- fs/btrfs/block-group.h 13 additions, 8 deletionsfs/btrfs/block-group.h
- fs/btrfs/dev-replace.c 3 additions, 3 deletionsfs/btrfs/dev-replace.c
- fs/btrfs/extent-tree.c 3 additions, 2 deletionsfs/btrfs/extent-tree.c
- fs/btrfs/free-space-cache.c 7 additions, 9 deletionsfs/btrfs/free-space-cache.c
- fs/btrfs/scrub.c 6 additions, 6 deletionsfs/btrfs/scrub.c
- fs/btrfs/space-info.c 1 addition, 1 deletionfs/btrfs/space-info.c
- fs/btrfs/volumes.c 4 additions, 5 deletionsfs/btrfs/volumes.c
- fs/btrfs/zoned.c 19 additions, 12 deletionsfs/btrfs/zoned.c
Loading
Please register or sign in to comment