[PATCH v11 04/15] memcg: move initialization to memcg creation

2013-11-25 Thread Vladimir Davydov
From: Glauber Costa Those structures are only used for memcgs that are effectively using kmemcg. However, in a later patch I intend to use scan that list inconditionally (list empty meaning no kmem caches present), which simplifies the code a lot. So move the initialization to early kmem

[PATCH v11 04/15] memcg: move initialization to memcg creation

2013-11-25 Thread Vladimir Davydov
From: Glauber Costa glom...@openvz.org Those structures are only used for memcgs that are effectively using kmemcg. However, in a later patch I intend to use scan that list inconditionally (list empty meaning no kmem caches present), which simplifies the code a lot. So move the initialization to

[PATCH v11 04/15] memcg: move initialization to memcg creation

2013-10-24 Thread Vladimir Davydov
From: Glauber Costa Those structures are only used for memcgs that are effectively using kmemcg. However, in a later patch I intend to use scan that list inconditionally (list empty meaning no kmem caches present), which simplifies the code a lot. So move the initialization to early kmem

[PATCH v11 04/15] memcg: move initialization to memcg creation

2013-10-24 Thread Vladimir Davydov
From: Glauber Costa glom...@openvz.org Those structures are only used for memcgs that are effectively using kmemcg. However, in a later patch I intend to use scan that list inconditionally (list empty meaning no kmem caches present), which simplifies the code a lot. So move the initialization to