[PATCH -mm 2/8] slab: charge slab pages to the current memory cgroup

2014-11-03 Thread Vladimir Davydov
Currently, new slabs are charged to the memory cgroup that owns the cache (kmem_cache->memcg_params->memcg), but I'm going to decouple kmem caches from memory cgroups so I make them charged to the current cgroup. Signed-off-by: Vladimir Davydov --- include/linux/memcontrol.h |5 -

[PATCH -mm 2/8] slab: charge slab pages to the current memory cgroup

2014-11-03 Thread Vladimir Davydov
Currently, new slabs are charged to the memory cgroup that owns the cache (kmem_cache-memcg_params-memcg), but I'm going to decouple kmem caches from memory cgroups so I make them charged to the current cgroup. Signed-off-by: Vladimir Davydov vdavy...@parallels.com --- include/linux/memcontrol.h