summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorYan <yanzheng@21cn.com>2008-04-01 11:21:34 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:01 -0400
commite58ca0203d32869a01540a293df40ddc480dc378 (patch)
treea0a7c4f66d296ea9dd12d13f2c9e7531401b96bf /fs/btrfs/super.c
parent63b10fc4874a014e22bc4c64e3d92b71180661fe (diff)
downloadblackbird-op-linux-e58ca0203d32869a01540a293df40ddc480dc378.tar.gz
blackbird-op-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/super.c')
-rw-r--r--fs/btrfs/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 9624923a33dc..892864906880 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -236,9 +236,9 @@ static int btrfs_fill_super(struct super_block * sb,
tree_root = open_ctree(sb, fs_devices);
- if (!tree_root || IS_ERR(tree_root)) {
+ if (IS_ERR(tree_root)) {
printk("btrfs: open_ctree failed\n");
- return -EIO;
+ return PTR_ERR(tree_root);
}
sb->s_fs_info = tree_root;
disk_super = &tree_root->fs_info->super_copy;
OpenPOWER on IntegriCloud