diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-11-26 19:47:05 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:58 -0400 |
commit | 8790bad7fb5ac4929dcd52c5dd8d6b81f8c05be8 (patch) | |
tree | 55790931270cf3fc827748d0c9771fc15ede3ed3 /fs | |
parent | 793955bca66c99defdffc857ae6eb7e8431d6bbe (diff) | |
download | op-kernel-dev-8790bad7fb5ac4929dcd52c5dd8d6b81f8c05be8.zip op-kernel-dev-8790bad7fb5ac4929dcd52c5dd8d6b81f8c05be8.tar.gz |
Btrfs: Only limit btree writeback for pdflush
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 28e9ef8..8a74f90 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; |