aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-03 16:29:03 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:01 -0400
commit611f0e00a27fe0e5a571194a12443ecdc99a43ef (patch)
treed030bb63cca2aa1cb38c205bfe9fcef29cecb175 /fs/btrfs/extent-tree.c
parent8790d502e4401a4a3a4175b83a3a47e8d595c771 (diff)
Btrfs: Add support for duplicate blocks on a single spindle
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 4ab98d8b73fa..1885ec4280c8 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -231,7 +231,7 @@ again:
231 if (start + num > total_fs_bytes) 231 if (start + num > total_fs_bytes)
232 goto new_group; 232 goto new_group;
233 if (!block_group_bits(cache, data)) { 233 if (!block_group_bits(cache, data)) {
234 printk("block group bits don't match %Lu %Lu\n", cache->flags, data); 234 printk("block group bits don't match %Lu %d\n", cache->flags, data);
235 } 235 }
236 *start_ret = start; 236 *start_ret = start;
237 return 0; 237 return 0;
@@ -1048,7 +1048,8 @@ static int update_space_info(struct btrfs_fs_info *info, u64 flags,
1048static void set_avail_alloc_bits(struct btrfs_fs_info *fs_info, u64 flags) 1048static void set_avail_alloc_bits(struct btrfs_fs_info *fs_info, u64 flags)
1049{ 1049{
1050 u64 extra_flags = flags & (BTRFS_BLOCK_GROUP_RAID0 | 1050 u64 extra_flags = flags & (BTRFS_BLOCK_GROUP_RAID0 |
1051 BTRFS_BLOCK_GROUP_RAID1); 1051 BTRFS_BLOCK_GROUP_RAID1 |
1052 BTRFS_BLOCK_GROUP_DUP);
1052 if (extra_flags) { 1053 if (extra_flags) {
1053 if (flags & BTRFS_BLOCK_GROUP_DATA) 1054 if (flags & BTRFS_BLOCK_GROUP_DATA)
1054 fs_info->avail_data_alloc_bits |= extra_flags; 1055 fs_info->avail_data_alloc_bits |= extra_flags;