summaryrefslogtreecommitdiff
path: root/extent-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-03 16:35:48 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-04-03 16:35:48 -0400
commita6de0bd778475504f42a142c83b8077993cbddfe (patch)
tree372c0634becbcd2c233e08d355e130c60de9cc58 /extent-tree.c
parent6a87b4c00a08e377ee6265dee6c2548d2d0f67b0 (diff)
Add mirroring support across multiple drives
Diffstat (limited to 'extent-tree.c')
-rw-r--r--extent-tree.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/extent-tree.c b/extent-tree.c
index b9cf92f6..d845adaa 100644
--- a/extent-tree.c
+++ b/extent-tree.c
@@ -1620,8 +1620,12 @@ int btrfs_alloc_extent(struct btrfs_trans_handle *trans,
struct btrfs_key keys[2];
int extra_alloc_flags = 0;
- if (btrfs_super_num_devices(&info->super_copy) > 1)
- extra_alloc_flags = BTRFS_BLOCK_GROUP_RAID0;
+ if (0 && btrfs_super_num_devices(&info->super_copy) > 1) {
+ if (data)
+ extra_alloc_flags = BTRFS_BLOCK_GROUP_RAID0;
+ else
+ extra_alloc_flags = BTRFS_BLOCK_GROUP_RAID1;
+ }
if (data) {
data = BTRFS_BLOCK_GROUP_DATA | extra_alloc_flags;