aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-05-10 11:24:42 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-05-10 11:24:42 -0400
commit8d7be552a733e53135a91d2d28f57ab87dc0e889 (patch)
tree62126fc82875b81f0132392f1d1833ceb960e1fb /fs/btrfs/extent-tree.c
parente37c9e6921207cf503634b06bee37ecb7904408d (diff)
Btrfs: fix check_node and check_leaf to use less cpu
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c6
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) {
559printk("group %Lu now available\n", cache->key.objectid); 559printk("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 +