]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcontrol: re-use global VM event enum
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 3 May 2017 21:55:10 +0000 (14:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 May 2017 22:52:11 +0000 (15:52 -0700)
commitd61ca1e1766aafcc9959742a39b35f3522386e06
tree5e5d55be503881f94f90f2fbdc039556668b4991
parent16d787a4efe826d41dd5817fe23630f3be1ac9db
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/20170404220148.28338-2-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