summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorYan2008-04-01 17:21:34 +0200
committerChris Mason2008-09-25 17:04:01 +0200
commite58ca0203d32869a01540a293df40ddc480dc378 (patch)
treea0a7c4f66d296ea9dd12d13f2c9e7531401b96bf /fs/btrfs/disk-io.c
parentReorder the flags field in struct btrfs_header and record a flag on writeout (diff)
downloadkernel-qcow2-linux-e58ca0203d32869a01540a293df40ddc480dc378.tar.gz
kernel-qcow2-linux-e58ca0203d32869a01540a293df40ddc480dc378.tar.xz
kernel-qcow2-linux-e58ca0203d32869a01540a293df40ddc480dc378.zip
Fix btrfs_fill_super to return -EINVAL when no FS found
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 709e33d08bb5..5547607681f4 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -728,9 +728,8 @@ struct btrfs_root *open_ctree(struct super_block *sb,
struct btrfs_root *dev_root = kmalloc(sizeof(struct btrfs_root),
GFP_NOFS);
int ret;
- int err = -EIO;
+ int err = -EINVAL;
struct btrfs_super_block *disk_super;
-
if (!extent_root || !tree_root || !fs_info) {
err = -ENOMEM;
goto fail;