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

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

Link: http://lkml.kernel.org/r/20190228163020.24100-4-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>
mm/memcontrol.c