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/file.c | |
parent | 47ac14fa0f5306c6b97203f4f086bf1fa21dfddb (diff) | |
download | linux-stable-37d1aeee3990385e9bb436c50c2f7e120a668df6.tar.gz linux-stable-37d1aeee3990385e9bb436c50c2f7e120a668df6.tar.bz2 linux-stable-37d1aeee3990385e9bb436c50c2f7e120a668df6.zip |
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.c | 2 |
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, 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; |