aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-04 15:40:00 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:01 -0400
commitd18a2c447524751137a12cc8ccaf9d1e0b7fa1b3 (patch)
treef331995fdac5f2550c8c3fccf74a94a66d642893 /fs/btrfs/disk-io.c
parent6bc34676c0b5836655ec1c7998e2647cabb933ec (diff)
Btrfs: Fix allocation profile init
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c11
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