aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/qgroup.c
diff options
context:
space:
mode:
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>2013-03-28 07:34:41 -0400
committerJosef Bacik <jbacik@fusionio.com>2013-05-06 15:54:28 -0400
commitc9a9dbf2cbd1641af49bf081ca3bbe4101df3991 (patch)
tree391fd378e7ff0b917f6491856b331192e2a01d89 /fs/btrfs/qgroup.c
parent6b67a32000dede2d50ac35b540726d2b7d8d17a8 (diff)
Btrfs: fix a warning when disabling quota
Steps to reproduce: mkfs.btrfs <disk> mount <disk> <mnt> btrfs quota enable <mnt> btrfs sub create <mnt>/subv i=1 while [ $i -le 10000 ] do dd if=/dev/zero of=<mnt>/subv/data_$i bs=1K count=1 i=$(($i+1)) if [ $i -eq 500 ] then btrfs quota disable $mnt fi done dmesg Obviously, this warn_on() is unnecessary, and it will be easily triggered. Just remove it. Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/qgroup.c')
-rw-r--r--fs/btrfs/qgroup.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c
index b44124dd2370..33b0bea50b45 100644
--- a/fs/btrfs/qgroup.c
+++ b/fs/btrfs/qgroup.c
@@ -420,8 +420,6 @@ void btrfs_free_qgroup_config(struct btrfs_fs_info *fs_info)
420 qgroup = rb_entry(n, struct btrfs_qgroup, node); 420 qgroup = rb_entry(n, struct btrfs_qgroup, node);
421 rb_erase(n, &fs_info->qgroup_tree); 421 rb_erase(n, &fs_info->qgroup_tree);
422 422
423 WARN_ON(!list_empty(&qgroup->dirty));
424
425 while (!list_empty(&qgroup->groups)) { 423 while (!list_empty(&qgroup->groups)) {
426 list = list_first_entry(&qgroup->groups, 424 list = list_first_entry(&qgroup->groups,
427 struct btrfs_qgroup_list, 425 struct btrfs_qgroup_list,