aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2013-05-13 07:10:44 -0400
committerJosef Bacik <jbacik@fusionio.com>2013-06-14 11:29:27 -0400
commit5798b92d2beb2f7b5378f1f2081a043409fcfae0 (patch)
treebf1d6f213f5121cc2bdb5228996a162fb3f6c1b5 /fs/btrfs/ioctl.c
parent1c89cdd1ce1b8b9ff7bca64bc9beea2c917e5693 (diff)
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/ioctl.c')
-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 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)
3719 break; 3719 break;
3720 } 3720 }
3721 3721
3722 if (copy_to_user(arg, sa, sizeof(*sa)))
3723 ret = -EFAULT;
3724
3725 err = btrfs_commit_transaction(trans, root->fs_info->tree_root); 3722 err = btrfs_commit_transaction(trans, root->fs_info->tree_root);
3726 if (err && !ret) 3723 if (err && !ret)
3727 ret = err; 3724 ret = err;