diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2016-10-20 04:28:41 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-02-14 15:50:49 +0100 |
commit | 18dc22c19bef520cca11ce4c0807ac9dec48d31f (patch) | |
tree | 8a8209911a18127a872f61e51bb75c79c024ec58 /fs/btrfs/extent_io.c | |
parent | Linux 4.10-rc8 (diff) | |
download | linux-18dc22c19bef520cca11ce4c0807ac9dec48d31f.tar.xz linux-18dc22c19bef520cca11ce4c0807ac9dec48d31f.zip |
btrfs: Add WARN_ON for qgroup reserved underflow
Goldwyn Rodrigues has exposed and fixed a bug which underflows btrfs
qgroup reserved space, and leads to non-writable fs.
This reminds us that we don't have enough underflow check for qgroup
reserved space.
For underflow case, we should not really underflow the numbers but warn
and keeps qgroup still work.
So add more check on qgroup reserved space and add WARN_ON() and
btrfs_warn() for any underflow case.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Reviewed-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
0 files changed, 0 insertions, 0 deletions