summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/qgroup.c
diff options
context:
space:
mode:
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>2013-08-14 09:13:38 +0800
committerChris Mason <chris.mason@fusionio.com>2013-09-01 08:15:47 -0400
commitb006b2e4f96a21958164ebf37e53c555d9e4fb2f (patch)
tree7f8967372add03906e268474907e62ddee4835a1 /fs/btrfs/qgroup.c
parente685da14af6b31e4b336a110cb1bae1afc268be8 (diff)
downloadlinux-stable-b006b2e4f96a21958164ebf37e53c555d9e4fb2f.tar.gz
linux-stable-b006b2e4f96a21958164ebf37e53c555d9e4fb2f.tar.bz2
linux-stable-b006b2e4f96a21958164ebf37e53c555d9e4fb2f.zip
Btrfs: remove reduplicate check when disabling quota
We have checked 'quota_root' with qgroup_ioctl_lock held before,So here the check is reduplicate, remove it. Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com> Reviewed-by: Miao Xie <miaox@cn.fujitsu.com> Reviewed-by: Arne Jansen <sensille@gmx.net> Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/qgroup.c')
-rw-r--r--fs/btrfs/qgroup.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c
index 01eeffe9ae53..66c58e120b2c 100644
--- a/fs/btrfs/qgroup.c
+++ b/fs/btrfs/qgroup.c
@@ -943,11 +943,6 @@ int btrfs_quota_disable(struct btrfs_trans_handle *trans,
btrfs_free_qgroup_config(fs_info);
- if (!quota_root) {
- ret = -EINVAL;
- goto out;
- }
-
ret = btrfs_clean_quota_tree(trans, quota_root);
if (ret)
goto out;