mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 07:35:10 +00:00
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>
This commit is contained in:
parent
26160158d3
commit
6933c02e9c
1 changed files with 1 additions and 1 deletions
|
@ -2385,7 +2385,7 @@ void btrfs_btree_balance_dirty(struct btrfs_root *root, unsigned long nr)
|
||||||
unsigned long thresh = 32 * 1024 * 1024;
|
unsigned long thresh = 32 * 1024 * 1024;
|
||||||
tree = &BTRFS_I(root->fs_info->btree_inode)->io_tree;
|
tree = &BTRFS_I(root->fs_info->btree_inode)->io_tree;
|
||||||
|
|
||||||
if (current_is_pdflush() || current->flags & PF_MEMALLOC)
|
if (current->flags & PF_MEMALLOC)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
num_dirty = count_range_bits(tree, &start, (u64)-1,
|
num_dirty = count_range_bits(tree, &start, (u64)-1,
|
||||||
|
|
Loading…
Reference in a new issue