Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b006b2e4 authored by Wang Shilong's avatar Wang Shilong Committed by Chris Mason
Browse files

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: default avatarWang Shilong <wangsl.fnst@cn.fujitsu.com>
Reviewed-by: default avatarMiao Xie <miaox@cn.fujitsu.com>
Reviewed-by: default avatarArne Jansen <sensille@gmx.net>
Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
Signed-off-by: default avatarChris Mason <chris.mason@fusionio.com>
parent e685da14
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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;