From: Liu Bo Date: Mon, 13 May 2013 11:10:44 +0000 (+0000) Subject: Btrfs: remove useless copy in quota_ctl X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5798b92d2beb2f7b5378f1f2081a043409fcfae0;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Josef Bacik --- diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 1e0dda1feefe..fe655bc48994 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -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;