From: Johannes Weiner Date: Fri, 26 Oct 2018 22:06:35 +0000 (-0700) Subject: mm: workingset: use cheaper __inc_lruvec_state in irqsafe node reclaim X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=505802a53510e54ad5fbbd655a68893df83bfb91;p=openwrt%2Fstaging%2Fblogic.git 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/20181009184732.762-3-hannes@cmpxchg.org Signed-off-by: Johannes Weiner Reviewed-by: Andrew Morton Reviewed-by: Rik van Riel Acked-by: Peter Zijlstra (Intel) Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/workingset.c b/mm/workingset.c index 99b7f7c09b13..5a72c9d5e195 100644 --- a/mm/workingset.c +++ b/mm/workingset.c @@ -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));