Skip to content

Commit 505802a

Browse files
hnaztorvalds
authored andcommitted
mm: workingset: use cheaper __inc_lruvec_state in irqsafe node reclaim
No need to use the preemption-safe lruvec state function inside the reclaim region that has irqs disabled. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Johannes Weiner <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Reviewed-by: Rik van Riel <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 2ce7135 commit 505802a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/workingset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ static enum lru_status shadow_lru_isolate(struct list_head *item,
500500
}
501501
if (WARN_ON_ONCE(node->exceptional))
502502
goto out_invalid;
503-
inc_lruvec_page_state(virt_to_page(node), WORKINGSET_NODERECLAIM);
503+
__inc_lruvec_page_state(virt_to_page(node), WORKINGSET_NODERECLAIM);
504504
__radix_tree_delete_node(&mapping->i_pages, node,
505505
workingset_lookup_update(mapping));
506506

0 commit comments

Comments
 (0)