btrfs: qgroup: move noisy underflow warning to debugging build
authorDavid Sterba <dsterba@suse.com>
Tue, 18 Apr 2017 15:00:12 +0000 (17:00 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 19 Apr 2017 10:40:49 +0000 (12:40 +0200)
commit338bd52f3c3a86a1feea8c9a121d1cee60d68d69
tree4c5e44c46215a71ba2ff0089ba03db2e395e5925
parenta967efb30b3afa3d858edd6a17f544f9e9e46eea
btrfs: qgroup: move noisy underflow warning to debugging build

The WARN_ON and warning from report_reserved_underflow can become very
noisy and is visible unconditionally although this is namely for
debugging. The patch "btrfs: Add WARN_ON for qgroup reserved underflow"
(18dc22c19bef520cca11ce4c0807ac9dec48d31f) went to 4.11-rc1 and the plan
was to get the fix as well, but this hasn't happened.

CC: Qu Wenruo <quwenruo@cn.fujitsu.com>
Reviewed-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/qgroup.c