aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-07-31 10:48:37 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:05 -0400
commit37d1aeee3990385e9bb436c50c2f7e120a668df6 (patch)
tree6fc0e7beba7161e0400e743b31030b8cbbe29885 /fs/btrfs/file.c
parent47ac14fa0f5306c6b97203f4f086bf1fa21dfddb (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/file.c')
-rw-r--r--fs/btrfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 388ac397c2c8..d3f2fe0b7c6c 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -253,7 +253,7 @@ static int noinline dirty_and_release_pages(struct btrfs_trans_handle *trans,
253 end_of_last_block = start_pos + num_bytes - 1; 253 end_of_last_block = start_pos + num_bytes - 1;
254 254
255 lock_extent(io_tree, start_pos, end_of_last_block, GFP_NOFS); 255 lock_extent(io_tree, start_pos, end_of_last_block, GFP_NOFS);
256 trans = btrfs_start_transaction(root, 1); 256 trans = btrfs_join_transaction(root, 1);
257 if (!trans) { 257 if (!trans) {
258 err = -ENOMEM; 258 err = -ENOMEM;
259 goto out_unlock; 259 goto out_unlock;