btrfs: pass the right error code to the btrfs_std_error
authorAnand Jain <anand.jain@oracle.com>
Thu, 10 Mar 2016 04:22:15 +0000 (12:22 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 2 May 2016 15:50:13 +0000 (17:50 +0200)
Also drop the newline from the message.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c

index 0f76aea..03df0bb 100644 (file)
@@ -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;