diff options
author | Josef Bacik <josef@toxicpanda.com> | 2021-12-15 15:40:01 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-03-14 13:13:48 +0100 |
commit | ef3eccc19aa896fc6aea26b4b065dcccec1b6460 (patch) | |
tree | 8c37eda4dd0086eb23fea1d99ef6e19116056960 | |
parent | 914a519b19e84dd5e4c3bf5a24cd892f64f0bdef (diff) | |
download | linux-stable-ef3eccc19aa896fc6aea26b4b065dcccec1b6460.tar.gz linux-stable-ef3eccc19aa896fc6aea26b4b065dcccec1b6460.tar.bz2 linux-stable-ef3eccc19aa896fc6aea26b4b065dcccec1b6460.zip |
btrfs: disable qgroups in extent tree v2
Backref lookups are going to be drastically different with extent tree
v2, disable qgroups until we do the work to add this support for extent
tree v2.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | fs/btrfs/qgroup.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c index 4a9bde1e2c50..d437511ed354 100644 --- a/fs/btrfs/qgroup.c +++ b/fs/btrfs/qgroup.c @@ -948,6 +948,12 @@ int btrfs_quota_enable(struct btrfs_fs_info *fs_info) */ lockdep_assert_held_write(&fs_info->subvol_sem); + if (btrfs_fs_incompat(fs_info, EXTENT_TREE_V2)) { + btrfs_err(fs_info, + "qgroups are currently unsupported in extent tree v2"); + return -EINVAL; + } + mutex_lock(&fs_info->qgroup_ioctl_lock); if (fs_info->quota_root) goto out; |