summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorAnand Jain2016-03-10 05:22:15 +0100
committerDavid Sterba2016-05-02 17:50:13 +0200
commitad8403df054c9b5dc3175a26c6179571b9cafa4e (patch)
tree1a6afd53b5217db92a5ec86e792dc339f05e9c0f /fs/btrfs/ioctl.c
parentbtrfs: fix typos in comments (diff)
downloadkernel-qcow2-linux-ad8403df054c9b5dc3175a26c6179571b9cafa4e.tar.gz
kernel-qcow2-linux-ad8403df054c9b5dc3175a26c6179571b9cafa4e.tar.xz
kernel-qcow2-linux-ad8403df054c9b5dc3175a26c6179571b9cafa4e.zip
btrfs: pass the right error code to the btrfs_std_error
Also drop the newline from the message. Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 0f76aea6e398..03df0bbb445d 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -4847,8 +4847,8 @@ static long btrfs_ioctl_qgroup_assign(struct file *file, void __user *arg)
/* update qgroup status and info */
err = btrfs_run_qgroups(trans, root->fs_info);
if (err < 0)
- btrfs_handle_fs_error(root->fs_info, ret,
- "failed to update qgroup status and info\n");
+ btrfs_handle_fs_error(root->fs_info, err,
+ "failed to update qgroup status and info");
err = btrfs_end_transaction(trans, root);
if (err && !ret)
ret = err;