diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2019-05-14 03:18:00 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-14 19:47:46 +0300 |
commit | 1a61ab8038e724a6d8aa59e7d4931a119483294d (patch) | |
tree | f91cd17590278cd22731b1b62632a11e212c51e6 /drivers/bus | |
parent | e0ee0e71078abbcadd4cbc38fb8570551fccc103 (diff) | |
download | linux-1a61ab8038e724a6d8aa59e7d4931a119483294d.tar.xz |
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>
Diffstat (limited to 'drivers/bus')
0 files changed, 0 insertions, 0 deletions