aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2016-10-20 10:28:41 +0800
committerDavid Sterba <[email protected]>2017-02-14 15:50:49 +0100
commit18dc22c19bef520cca11ce4c0807ac9dec48d31f (patch)
tree8a8209911a18127a872f61e51bb75c79c024ec58 /tools
parent7089db84e356562f8ba737c29e472cc42d530dbc (diff)
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 <[email protected]> Reviewed-by: David Sterba <[email protected]> Reviewed-by: Goldwyn Rodrigues <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions