summaryrefslogtreecommitdiffstats
path: root/fs/nsfs.c
diff options
context:
space:
mode:
authorBoris Burkov <boris@bur.io>2024-03-19 10:54:22 -0700
committerDavid Sterba <dsterba@suse.com>2024-04-02 19:18:04 +0200
commit141fb8cd206ace23c02cd2791c6da52c1d77d42a (patch)
tree6d1f35e12cd07c231f96c4fc36a03122476a4ad6 /fs/nsfs.c
parentef1e68236b9153c27cb7cf29ead0c532870d4215 (diff)
downloadlinux-stable-141fb8cd206ace23c02cd2791c6da52c1d77d42a.tar.gz
linux-stable-141fb8cd206ace23c02cd2791c6da52c1d77d42a.tar.bz2
linux-stable-141fb8cd206ace23c02cd2791c6da52c1d77d42a.zip
btrfs: qgroup: correctly model root qgroup rsv in convert
We use add_root_meta_rsv and sub_root_meta_rsv to track prealloc and pertrans reservations for subvolumes when quotas are enabled. The convert function does not properly increment pertrans after decrementing prealloc, so the count is not accurate. Note: we check that the fs is not read-only to mirror the logic in qgroup_convert_meta, which checks that before adding to the pertrans rsv. Fixes: 8287475a2055 ("btrfs: qgroup: Use root::qgroup_meta_rsv_* to record qgroup meta reserved space") CC: stable@vger.kernel.org # 6.1+ Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Boris Burkov <boris@bur.io> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/nsfs.c')
0 files changed, 0 insertions, 0 deletions