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>
This commit is contained in:
parent
180e4d4700
commit
ad8403df05
|
@ -4847,8 +4847,8 @@ static long btrfs_ioctl_qgroup_assign(struct file *file, void __user *arg)
|
||||||
/* update qgroup status and info */
|
/* update qgroup status and info */
|
||||||
err = btrfs_run_qgroups(trans, root->fs_info);
|
err = btrfs_run_qgroups(trans, root->fs_info);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
btrfs_handle_fs_error(root->fs_info, ret,
|
btrfs_handle_fs_error(root->fs_info, err,
|
||||||
"failed to update qgroup status and info\n");
|
"failed to update qgroup status and info");
|
||||||
err = btrfs_end_transaction(trans, root);
|
err = btrfs_end_transaction(trans, root);
|
||||||
if (err && !ret)
|
if (err && !ret)
|
||||||
ret = err;
|
ret = err;
|
||||||
|
|
Loading…
Reference in New Issue