|
@@ -847,6 +847,10 @@ int btrfs_quota_disable(struct btrfs_trans_handle *trans,
|
|
int ret = 0;
|
|
int ret = 0;
|
|
|
|
|
|
spin_lock(&fs_info->qgroup_lock);
|
|
spin_lock(&fs_info->qgroup_lock);
|
|
|
|
+ if (!fs_info->quota_root) {
|
|
|
|
+ spin_unlock(&fs_info->qgroup_lock);
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
fs_info->quota_enabled = 0;
|
|
fs_info->quota_enabled = 0;
|
|
fs_info->pending_quota_state = 0;
|
|
fs_info->pending_quota_state = 0;
|
|
quota_root = fs_info->quota_root;
|
|
quota_root = fs_info->quota_root;
|