mm: memcontrol: use generic mod_memcg_page_state for kmem pages
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 6 Jul 2017 22:40:49 +0000 (15:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 6 Jul 2017 23:24:35 +0000 (16:24 -0700)
commited52be7bfd45533b194b429f43361493d24599a7
tree2b1ab7d515cfa34eafe21851251ccf20268c60fd
parent320492961c1cf21da5547b00c23e525851c1d16f
mm: memcontrol: use generic mod_memcg_page_state for kmem pages

The kmem-specific functions do the same thing.  Switch and drop.

Link: http://lkml.kernel.org/r/20170530181724.27197-5-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: Josef Bacik <josef@toxicpanda.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memcontrol.h
kernel/fork.c
mm/slab.h