From: Jens Axboe Date: Tue, 17 Mar 2009 08:36:37 +0000 (+0100) Subject: btrfs: get rid of current_is_pdflush() in btrfs_btree_balance_dirty X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6933c02e9cc47c2df3c016621a013ec79fb4203f;p=linux-beck.git btrfs: get rid of current_is_pdflush() in btrfs_btree_balance_dirty Chris says it's safe to kill. Acked-by: Chris Mason Signed-off-by: Jens Axboe --- diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 3e18175248e0..6ec80c0fc869 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,