diff options
author | Anand Jain <anand.jain@oracle.com> | 2016-03-09 23:22:15 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-05-02 11:50:13 -0400 |
commit | ad8403df054c9b5dc3175a26c6179571b9cafa4e (patch) | |
tree | 1a6afd53b5217db92a5ec86e792dc339f05e9c0f | |
parent | 180e4d4700b1b7bfdffd9e58ae95220ae9482d17 (diff) |
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>
-rw-r--r-- | fs/btrfs/ioctl.c | 4 |
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) | |||
4847 | /* update qgroup status and info */ | 4847 | /* update qgroup status and info */ |
4848 | err = btrfs_run_qgroups(trans, root->fs_info); | 4848 | err = btrfs_run_qgroups(trans, root->fs_info); |
4849 | if (err < 0) | 4849 | if (err < 0) |
4850 | btrfs_handle_fs_error(root->fs_info, ret, | 4850 | btrfs_handle_fs_error(root->fs_info, err, |
4851 | "failed to update qgroup status and info\n"); | 4851 | "failed to update qgroup status and info"); |
4852 | err = btrfs_end_transaction(trans, root); | 4852 | err = btrfs_end_transaction(trans, root); |
4853 | if (err && !ret) | 4853 | if (err && !ret) |
4854 | ret = err; | 4854 | ret = err; |