Btrfs: remove useless copy in quota_ctl
We don't need to copy it back to user side as it remains unchanged. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
This commit is contained in:
parent
1c89cdd1ce
commit
5798b92d2b
fs/btrfs
|
@ -3719,9 +3719,6 @@ static long btrfs_ioctl_quota_ctl(struct file *file, void __user *arg)
|
|||
break;
|
||||
}
|
||||
|
||||
if (copy_to_user(arg, sa, sizeof(*sa)))
|
||||
ret = -EFAULT;
|
||||
|
||||
err = btrfs_commit_transaction(trans, root->fs_info->tree_root);
|
||||
if (err && !ret)
|
||||
ret = err;
|
||||
|
|
Loading…
Reference in New Issue