summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-03-17 09:36:37 +0100
committerJens Axboe <jens.axboe@oracle.com>2009-03-26 11:01:35 +0100
commit6933c02e9cc47c2df3c016621a013ec79fb4203f (patch)
treed2b711f72c6d1aab317b96ff5040f3fa2ced9ec8 /fs/btrfs
parent26160158d3d3df548f4ee046cc6147fe048cfa9c (diff)
downloadop-kernel-dev-6933c02e9cc47c2df3c016621a013ec79fb4203f.zip
op-kernel-dev-6933c02e9cc47c2df3c016621a013ec79fb4203f.tar.gz
btrfs: get rid of current_is_pdflush() in btrfs_btree_balance_dirty
Chris says it's safe to kill. Acked-by: Chris Mason <chris.mason@oracle.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs/btrfs')
-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 3e18175..6ec80c0 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -2385,7 +2385,7 @@ void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr)
unsigned long thresh = 32 * 1024 * 1024;
tree = &BTRFS_I(root->fs_info->btree_inode)->io_tree;
- if (current_is_pdflush() || current->flags & PF_MEMALLOC)
+ if (current->flags & PF_MEMALLOC)
return;
num_dirty = count_range_bits(tree, &start, (u64)-1,
OpenPOWER on IntegriCloud