Btrfs: remove useless copy in quota_ctl
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 13 May 2013 11:10:44 +0000 (11:10 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 14 Jun 2013 15:29:27 +0000 (11:29 -0400)
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>
fs/btrfs/ioctl.c

index 1e0dda1feefe1cab3be452f06ea579dd449c3bfd..fe655bc489945a6f949995d9b563522042c6fe31 100644 (file)
@@ -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;