]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
btrfs: get rid of current_is_pdflush() in btrfs_btree_balance_dirty
authorJens Axboe <jens.axboe@oracle.com>
Tue, 17 Mar 2009 08:36:37 +0000 (09:36 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 26 Mar 2009 10:01:35 +0000 (11:01 +0100)
Chris says it's safe to kill.

Acked-by: Chris Mason <chris.mason@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/btrfs/disk-io.c

index 3e18175248e030ce37aa8dcd1edd400cb7d79e1e..6ec80c0fc8697a0a9171e72a8dd4e63905c7993e 100644 (file)
@@ -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,