summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2016-10-20 04:28:41 +0200
committerDavid Sterba <dsterba@suse.com>2017-02-14 15:50:49 +0100
commit18dc22c19bef520cca11ce4c0807ac9dec48d31f (patch)
tree8a8209911a18127a872f61e51bb75c79c024ec58 /fs/btrfs/extent_io.c
parentLinux 4.10-rc8 (diff)
downloadlinux-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