diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 42522232fde4..bc5bd5abb28a 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -912,13 +912,10 @@ struct btrfs_root *open_ctree(struct super_block *sb, | |||
912 | btrfs_read_block_groups(extent_root); | 912 | btrfs_read_block_groups(extent_root); |
913 | 913 | ||
914 | fs_info->generation = btrfs_super_generation(disk_super) + 1; | 914 | fs_info->generation = btrfs_super_generation(disk_super) + 1; |
915 | if (btrfs_super_num_devices(disk_super) > 0) { | 915 | fs_info->data_alloc_profile = (u64)-1; |
916 | fs_info->data_alloc_profile = BTRFS_BLOCK_GROUP_RAID0 | | 916 | fs_info->metadata_alloc_profile = (u64)-1; |
917 | BTRFS_BLOCK_GROUP_RAID1; | 917 | fs_info->system_alloc_profile = fs_info->metadata_alloc_profile; |
918 | fs_info->metadata_alloc_profile = BTRFS_BLOCK_GROUP_RAID1 | | 918 | |
919 | BTRFS_BLOCK_GROUP_DUP; | ||
920 | fs_info->system_alloc_profile = fs_info->metadata_alloc_profile; | ||
921 | } | ||
922 | mutex_unlock(&fs_info->fs_mutex); | 919 | mutex_unlock(&fs_info->fs_mutex); |
923 | return tree_root; | 920 | return tree_root; |
924 | 921 | ||