Skip to content

Commit

Permalink
Btrfs: remove useless copy in quota_ctl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Liu Bo authored and Josef Bacik committed Jun 14, 2013
1 parent 1c89cdd commit 5798b92
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5798b92

Please sign in to comment.