summaryrefslogtreecommitdiff
path: root/fs/btrfs
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2013-05-13 11:10:44 (GMT)
committerJosef Bacik <jbacik@fusionio.com>2013-06-14 15:29:27 (GMT)
commit5798b92d2beb2f7b5378f1f2081a043409fcfae0 (patch)
treebf1d6f213f5121cc2bdb5228996a162fb3f6c1b5 /fs/btrfs
parent1c89cdd1ce1b8b9ff7bca64bc9beea2c917e5693 (diff)
downloadlinux-5798b92d2beb2f7b5378f1f2081a043409fcfae0.tar.xz
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>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/ioctl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 1e0dda1..fe655bc 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;