]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: convert block group bit field to use bit helpers
authorJosef Bacik <josef@toxicpanda.com>
Fri, 15 Jul 2022 19:45:24 +0000 (15:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:27:54 +0000 (12:27 +0200)
commitd28ddca08f8281a75d90856225f921139d45f605
tree12dce14e91153e4ae52b8bf7b525bb366c0ec8f8
parenta7c409aabb48d740393e432ae570c8d97eb68e6e
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>
fs/btrfs/block-group.c
fs/btrfs/block-group.h
fs/btrfs/dev-replace.c
fs/btrfs/extent-tree.c
fs/btrfs/free-space-cache.c
fs/btrfs/scrub.c
fs/btrfs/space-info.c
fs/btrfs/volumes.c
fs/btrfs/zoned.c