]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: introduce BTRFS_QGROUP_STATUS_FLAGS_MASK for later expansion
authorQu Wenruo <wqu@suse.com>
Wed, 24 Aug 2022 01:14:06 +0000 (09:14 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:28:01 +0000 (12:28 +0200)
commitd149efe37271a491ed0ac4ff2e3f8bab5961b20c
tree1114c112ad417e389423a3544c8157decebaf15c
parent429cb9a53f14e05a6f7691230560f1d1266f3c08
btrfs: introduce BTRFS_QGROUP_STATUS_FLAGS_MASK for later expansion

Currently we only have 3 qgroup flags:

- BTRFS_QGROUP_STATUS_FLAG_ON
- BTRFS_QGROUP_STATUS_FLAG_RESCAN
- BTRFS_QGROUP_STATUS_FLAG_INCONSISTENT

These flags match the on-disk flags used in btrfs_qgroup_status.

But we're going to introduce extra runtime flags which will not reach
disks.

So here we introduce a new mask, BTRFS_QGROUP_STATUS_FLAGS_MASK, to
make sure only those flags can reach disks.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/qgroup.c
include/uapi/linux/btrfs_tree.h