]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcontrol: re-use node VM page state enum
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 3 May 2017 21:55:13 +0000 (14:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 May 2017 22:52:11 +0000 (15:52 -0700)
commit9a75d5a30744176e37ef5d81a5c7ad41c3c41859
treec95c8da1e70c21e412d9ab7328fc414ecfb80451
parentd61ca1e1766aafcc9959742a39b35f3522386e06
mm: memcontrol: re-use node VM page state enum

The current duplication is a high-maintenance mess, and it's painful to
add new items or query memcg state from the rest of the VM.

This increases the size of the stat array marginally, but we should aim
to track all these stats on a per-cgroup level anyway.

Link: http://lkml.kernel.org/r/20170404220148.28338-3-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: Michal Hocko <mhocko@suse.com>
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/page-writeback.c
mm/rmap.c
mm/vmscan.c
mm/workingset.c