diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-07-31 10:48:37 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:05 -0400 |
commit | 37d1aeee3990385e9bb436c50c2f7e120a668df6 (patch) | |
tree | 6fc0e7beba7161e0400e743b31030b8cbbe29885 /fs/btrfs/extent-tree.c | |
parent | 47ac14fa0f5306c6b97203f4f086bf1fa21dfddb (diff) |
Btrfs: Throttle tuning
This avoids waiting for transactions with pages locked by breaking out
the code to wait for the current transaction to close into a function
called by btrfs_throttle.
It also lowers the limits for where we start throttling.
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 4765248000fd..b003b4364ddb 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c | |||
@@ -2526,6 +2526,9 @@ static int noinline walk_down_tree(struct btrfs_trans_handle *trans, | |||
2526 | *level = 0; | 2526 | *level = 0; |
2527 | break; | 2527 | break; |
2528 | } | 2528 | } |
2529 | if (printk_ratelimit()) | ||
2530 | printk("leaf ref miss for bytenr %llu\n", | ||
2531 | (unsigned long long)bytenr); | ||
2529 | } | 2532 | } |
2530 | next = btrfs_find_tree_block(root, bytenr, blocksize); | 2533 | next = btrfs_find_tree_block(root, bytenr, blocksize); |
2531 | if (!next || !btrfs_buffer_uptodate(next, ptr_gen)) { | 2534 | if (!next || !btrfs_buffer_uptodate(next, ptr_gen)) { |