diff options
author | Boris Burkov <boris@bur.io> | 2024-01-11 02:51:26 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-01-31 08:42:44 +0100 |
commit | 0c309d66dacddf8ce939b891d9ead4a8e21ad6f0 (patch) | |
tree | 96e92fd2d56db9332cbc07a8b7d71212db52be1b /fs/btrfs/qgroup.c | |
parent | btrfs: send: return EOPNOTSUPP on unknown flags (diff) | |
download | linux-0c309d66dacddf8ce939b891d9ead4a8e21ad6f0.tar.xz linux-0c309d66dacddf8ce939b891d9ead4a8e21ad6f0.zip |
btrfs: forbid creating subvol qgroups
Creating a qgroup 0/subvolid leads to various races and it isn't
helpful, because you can't specify a subvol id when creating a subvol,
so you can't be sure it will be the right one. Any requirements on the
automatic subvol can be gratified by using a higher level qgroup and the
inheritance parameters of subvol creation.
Fixes: cecbb533b5fc ("btrfs: record simple quota deltas in delayed refs")
CC: stable@vger.kernel.org # 4.14+
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Boris Burkov <boris@bur.io>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/qgroup.c')
0 files changed, 0 insertions, 0 deletions