]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
memcg, slab: merge memcg_{bind,release}_pages to memcg_{un}charge_slab
authorVladimir Davydov <vdavydov@parallels.com>
Sat, 17 May 2014 13:17:56 +0000 (23:17 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 17 May 2014 13:17:56 +0000 (23:17 +1000)
commit08921dd180f8acfe26acfb6f826f83d17b82c5d7
tree2d98fa235a491f38c214a7819e1315e978c51af1
parent93a7c97260743e479c6c2ffaa3876b610de7c91d
memcg, slab: merge memcg_{bind,release}_pages to memcg_{un}charge_slab

Currently we have two pairs of kmemcg-related functions that are called on
slab alloc/free.  The first is memcg_{bind,release}_pages that count the
total number of pages allocated on a kmem cache.  The second is
memcg_{un}charge_slab that {un}charge slab pages to kmemcg resource
counter.  Let's just merge them to keep the code clean.

Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Glauber Costa <glommer@gmail.com>
Cc: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/memcontrol.h
mm/memcontrol.c
mm/slab.c
mm/slab.h
mm/slub.c