mm: memcontrol: re-use node VM page state enum
authorJohannes Weiner <[email protected]>
Wed, 3 May 2017 21:55:13 +0000 (14:55 -0700)
committerLinus Torvalds <[email protected]>
Wed, 3 May 2017 22:52:11 +0000 (15:52 -0700)
commit71cd31135d4cf030a057ed7079a75a40c0a4a796
treec95c8da1e70c21e412d9ab7328fc414ecfb80451
parentdf0e53d0619e83b465e363c088bf4eeb2848273b
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/[email protected]
Signed-off-by: Johannes Weiner <[email protected]>
Acked-by: Vladimir Davydov <[email protected]>
Cc: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/memcontrol.h
mm/memcontrol.c
mm/page-writeback.c
mm/rmap.c
mm/vmscan.c
mm/workingset.c