summaryrefslogtreecommitdiffstats
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)
downloadop-kernel-dev-37d1aeee3990385e9bb436c50c2f7e120a668df6.zip
op-kernel-dev-37d1aeee3990385e9bb436c50c2f7e120a668df6.tar.gz
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 388ac39..d3f2fe0 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,
end_of_last_block = start_pos + num_bytes - 1;
lock_extent(io_tree, start_pos, end_of_last_block, GFP_NOFS);
- trans = btrfs_start_transaction(root, 1);
+ trans = btrfs_join_transaction(root, 1);
if (!trans) {
err = -ENOMEM;
goto out_unlock;
OpenPOWER on IntegriCloud