[PATCH -mm 3/8] memcg: decouple per memcg kmem cache from the owner memcg

2014-11-03 Thread Vladimir Davydov
Basically, we substitute the reference to the owner memory cgroup in memcg_cache_params with the index in the memcg_caches array. This decouples kmem cache from the memcg it was created for and will allow to reuse it for another cgroup after css offline. Signed-off-by: Vladimir Davydov ---

[PATCH -mm 3/8] memcg: decouple per memcg kmem cache from the owner memcg

2014-11-03 Thread Vladimir Davydov
Basically, we substitute the reference to the owner memory cgroup in memcg_cache_params with the index in the memcg_caches array. This decouples kmem cache from the memcg it was created for and will allow to reuse it for another cgroup after css offline. Signed-off-by: Vladimir Davydov