projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b96362
)
btrfsctl -A error code fixup
author
Linda Knippers
<linda.knippers@hp.com>
Tue, 10 Jun 2008 02:17:11 +0000
(22:17 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:03 +0000
(11:04 -0400)
Send the error back to userland if the ioctl fails
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/super.c
b/fs/btrfs/super.c
index 05029656e42e9c871238175ea692ade0cc031b66..77f44494e2292dd719125e1c139704450ec5a229 100644
(file)
--- a/
fs/btrfs/super.c
+++ b/
fs/btrfs/super.c
@@
-453,7
+453,7
@@
static long btrfs_control_ioctl(struct file *file, unsigned int cmd,
{
struct btrfs_ioctl_vol_args *vol;
struct btrfs_fs_devices *fs_devices;
- int ret;
+ int ret
= 0
;
int len;
vol = kmalloc(sizeof(*vol), GFP_KERNEL);
@@
-470,7
+470,7
@@
static long btrfs_control_ioctl(struct file *file, unsigned int cmd,
}
out:
kfree(vol);
- return
0
;
+ return
ret
;
}
static void btrfs_write_super_lockfs(struct super_block *sb)