diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-04-29 09:38:00 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:02 -0400 |
commit | a236aed14ccb0661611d4416f6b573d892bdc60a (patch) | |
tree | b275333ab5bfaa9ea68756aa0a5c6d5c6fef5405 /fs/btrfs/extent-tree.c | |
parent | 4235298e4fc3c1a09f659cfe2fd285024eeb2241 (diff) |
Btrfs: Deal with failed writes in mirrored configurations
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 95aee5a29375..f94794a99329 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -315,8 +315,8 @@ struct btrfs_block_group_cache *btrfs_find_block_group(struct btrfs_root *root, | |||
315 | block_group_cache = &info->block_group_cache; | 315 | block_group_cache = &info->block_group_cache; |
316 | total_fs_bytes = btrfs_super_total_bytes(&root->fs_info->super_copy); | 316 | total_fs_bytes = btrfs_super_total_bytes(&root->fs_info->super_copy); |
317 | 317 | ||
318 | if (!owner) | 318 | if (data & BTRFS_BLOCK_GROUP_METADATA) |
319 | factor = 10; | 319 | factor = 9; |
320 | 320 | ||
321 | bit = block_group_state_bits(data); | 321 | bit = block_group_state_bits(data); |
322 | 322 | ||