diff options
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r-- | fs/btrfs/extent-tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 3ac9da453472..1497ff98f0d3 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -235,7 +235,7 @@ struct btrfs_block_group_cache *btrfs_find_block_group(struct btrfs_root *root, | |||
235 | hint->key.offset - 1, | 235 | hint->key.offset - 1, |
236 | BTRFS_BLOCK_GROUP_AVAIL); | 236 | BTRFS_BLOCK_GROUP_AVAIL); |
237 | } | 237 | } |
238 | last = hint->key.offset * 2; | 238 | last = hint->key.offset * 3; |
239 | if (hint->key.objectid >= last) | 239 | if (hint->key.objectid >= last) |
240 | last = max(search_start + hint->key.offset - 1, | 240 | last = max(search_start + hint->key.offset - 1, |
241 | hint->key.objectid - last); | 241 | hint->key.objectid - last); |
@@ -554,8 +554,8 @@ static int update_block_group(struct btrfs_trans_handle *trans, | |||
554 | blocknr + i); | 554 | blocknr + i); |
555 | } | 555 | } |
556 | } | 556 | } |
557 | if (old_val < (cache->key.offset * 8) / 10 && | 557 | if (old_val < (cache->key.offset * 6) / 10 && |
558 | old_val + num >= (cache->key.offset * 8) / 10) { | 558 | old_val + num >= (cache->key.offset * 6) / 10) { |
559 | printk("group %Lu now available\n", cache->key.objectid); | 559 | printk("group %Lu now available\n", cache->key.objectid); |
560 | radix_tree_tag_set(cache->radix, | 560 | radix_tree_tag_set(cache->radix, |
561 | cache->key.objectid + | 561 | cache->key.objectid + |