]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcontrol: replace zone summing with lruvec_page_state()
authorJohannes Weiner <hannes@cmpxchg.org>
Tue, 14 May 2019 00:18:00 +0000 (17:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 May 2019 16:47:46 +0000 (09:47 -0700)
commit6812b5f8996af42d24c727e8dadf69decf74507d
treef91cd17590278cd22731b1b62632a11e212c51e6
parentd7ab112cc87720e8bf57a0753b3cea471983c51c
mm: memcontrol: replace zone summing with lruvec_page_state()

Instead of adding up the zone counters, use lruvec_page_state() to get the
node state directly.  This is a bit cheaper and more stream-lined.

Link: http://lkml.kernel.org/r/20190228163020.24100-3-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Roman Gushchin <guro@fb.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memcontrol.h
mm/memcontrol.c
mm/vmscan.c