diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 8ecc5419d8b6..b3fc8475870f 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -2065,6 +2065,12 @@ struct btrfs_root *open_ctree(struct super_block *sb, | |||
2065 | fs_info->metadata_alloc_profile = (u64)-1; | 2065 | fs_info->metadata_alloc_profile = (u64)-1; |
2066 | fs_info->system_alloc_profile = fs_info->metadata_alloc_profile; | 2066 | fs_info->system_alloc_profile = fs_info->metadata_alloc_profile; |
2067 | 2067 | ||
2068 | ret = btrfs_init_space_info(fs_info); | ||
2069 | if (ret) { | ||
2070 | printk(KERN_ERR "Failed to initial space info: %d\n", ret); | ||
2071 | goto fail_block_groups; | ||
2072 | } | ||
2073 | |||
2068 | ret = btrfs_read_block_groups(extent_root); | 2074 | ret = btrfs_read_block_groups(extent_root); |
2069 | if (ret) { | 2075 | if (ret) { |
2070 | printk(KERN_ERR "Failed to read block groups: %d\n", ret); | 2076 | printk(KERN_ERR "Failed to read block groups: %d\n", ret); |