memcg, slab: separate memcg vs root cache creation paths
authorVladimir Davydov <[email protected]>
Mon, 7 Apr 2014 22:39:26 +0000 (15:39 -0700)
committerLinus Torvalds <[email protected]>
Mon, 7 Apr 2014 23:36:12 +0000 (16:36 -0700)
commit794b1248be4e7e157f5535c3ee49168aa4643349
tree93bfa09b76abff9ec2f9d154bb43971bcce2f574
parent5722d094ad2b56fa2c1cb3adaf40071a55bbf242
memcg, slab: separate memcg vs root cache creation paths

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 <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: Glauber Costa <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/memcontrol.h
include/linux/slab.h
mm/memcontrol.c
mm/slab_common.c