mm: workingset: use cheaper __inc_lruvec_state in irqsafe node reclaim
authorJohannes Weiner <[email protected]>
Fri, 26 Oct 2018 22:06:35 +0000 (15:06 -0700)
committerLinus Torvalds <[email protected]>
Fri, 26 Oct 2018 23:26:32 +0000 (16:26 -0700)
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]>
mm/workingset.c

index 99b7f7c09b13850198894d819f3f26252adcffae..5a72c9d5e195aac81db295a39d08a45ca796d69a 100644 (file)
@@ -500,7 +500,7 @@ static enum lru_status shadow_lru_isolate(struct list_head *item,
        }
        if (WARN_ON_ONCE(node->exceptional))
                goto out_invalid;
-       inc_lruvec_page_state(virt_to_page(node), WORKINGSET_NODERECLAIM);
+       __inc_lruvec_page_state(virt_to_page(node), WORKINGSET_NODERECLAIM);
        __radix_tree_delete_node(&mapping->i_pages, node,
                                 workingset_lookup_update(mapping));