aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-11-26 19:47:05 -0500
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:58 -0400
commit8790bad7fb5ac4929dcd52c5dd8d6b81f8c05be8 (patch)
tree55790931270cf3fc827748d0c9771fc15ede3ed3 /fs/btrfs/disk-io.c
parent793955bca66c99defdffc857ae6eb7e8431d6bbe (diff)
Btrfs: Only limit btree writeback for pdflush
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 28e9ef8a325..8a74f9027d6 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -210,7 +210,7 @@ static int btree_writepages(struct address_space *mapping,
{
struct extent_map_tree *tree;
tree = &BTRFS_I(mapping->host)->extent_tree;
- if (wbc->sync_mode == WB_SYNC_NONE) {
+ if (wbc->sync_mode == WB_SYNC_NONE && current_is_pdflush()) {
u64 num_dirty;
u64 start = 0;
unsigned long thresh = 96 * 1024 * 1024;