]> 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)
commit3349b57fd47b5de10936bd8928db546b20c9fb91
tree12dce14e91153e4ae52b8bf7b525bb366c0ec8f8
parent723de71d41f50709eaf2eef1b08aa409687a3c97
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