diff options
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 4 |
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, | |||
236 | 236 | ||
237 | tree_root = open_ctree(sb, fs_devices); | 237 | tree_root = open_ctree(sb, fs_devices); |
238 | 238 | ||
239 | if (!tree_root || IS_ERR(tree_root)) { | 239 | if (IS_ERR(tree_root)) { |
240 | printk("btrfs: open_ctree failed\n"); | 240 | printk("btrfs: open_ctree failed\n"); |
241 | return -EIO; | 241 | return PTR_ERR(tree_root); |
242 | } | 242 | } |
243 | sb->s_fs_info = tree_root; | 243 | sb->s_fs_info = tree_root; |
244 | disk_super = &tree_root->fs_info->super_copy; | 244 | disk_super = &tree_root->fs_info->super_copy; |