]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: check squota parent usage on membership change
authorBoris Burkov <boris@bur.io>
Mon, 1 Dec 2025 23:33:49 +0000 (15:33 -0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 3 Feb 2026 05:38:31 +0000 (06:38 +0100)
commit9c46bcda5f347febdbb4d117fb21a37ffcec5fa4
tree395c9ce99797178afbbfdb86b1de22d16bd1df63
parenta5eb9024368dac8cc6b317c1577c6348e5334243
btrfs: check squota parent usage on membership change

We could have detected the quick inherit bug more directly if we had
an extra warning about squota hierarchy consistency while modifying the
hierarchy. In squotas, the parent usage always simply adds up to the sum of
its children, so we can just check for that when changing membership and
detect more accounting bugs.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/qgroup.c