[PATCH -mm v3 3/7] memcg, slab: separate memcg vs root cache creation paths

2014-02-19 Thread Vladimir Davydov
Memcg-awareness turned kmem_cache_create() into a dirty interweaving of memcg-only and except-for-memcg calls. To clean this up, let's move the code responsible for memcg cache creation to a separate function. Signed-off-by: Vladimir Davydov --- include/linux/memcontrol.h |6 --

[PATCH -mm v3 3/7] memcg, slab: separate memcg vs root cache creation paths

2014-02-19 Thread Vladimir Davydov
Memcg-awareness turned kmem_cache_create() into a dirty interweaving of memcg-only and except-for-memcg calls. To clean this up, let's move the code responsible for memcg cache creation to a separate function. Signed-off-by: Vladimir Davydov vdavy...@parallels.com --- include/linux/memcontrol.h