btrfsctl -A error code fixup
Send the error back to userland if the ioctl fails Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
committed by
Chris Mason
parent
3b96362cc8
commit
f819d837ee
@@ -453,7 +453,7 @@ static long btrfs_control_ioctl(struct file *file, unsigned int cmd,
|
|||||||
{
|
{
|
||||||
struct btrfs_ioctl_vol_args *vol;
|
struct btrfs_ioctl_vol_args *vol;
|
||||||
struct btrfs_fs_devices *fs_devices;
|
struct btrfs_fs_devices *fs_devices;
|
||||||
int ret;
|
int ret = 0;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
vol = kmalloc(sizeof(*vol), GFP_KERNEL);
|
vol = kmalloc(sizeof(*vol), GFP_KERNEL);
|
||||||
@@ -470,7 +470,7 @@ static long btrfs_control_ioctl(struct file *file, unsigned int cmd,
|
|||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
kfree(vol);
|
kfree(vol);
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void btrfs_write_super_lockfs(struct super_block *sb)
|
static void btrfs_write_super_lockfs(struct super_block *sb)
|
||||||
|
Reference in New Issue
Block a user