mm: memcontrol: re-use global VM event enum
authorJohannes Weiner <[email protected]>
Wed, 3 May 2017 21:55:10 +0000 (14:55 -0700)
committerLinus Torvalds <[email protected]>
Wed, 3 May 2017 22:52:11 +0000 (15:52 -0700)
commitdf0e53d0619e83b465e363c088bf4eeb2848273b
tree5e5d55be503881f94f90f2fbdc039556668b4991
parent31176c781508e4e35b1cc4ae2f0a5abd1f4ea689
mm: memcontrol: re-use global VM event enum

The current duplication is a high-maintenance mess, and it's painful to
add new items.

This increases the size of the event array, but we'll eventually want
most of the VM events tracked on a per-cgroup basis 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