[PATCH v11 01/15] memcg: make cache index determination more robust

2013-11-25 Thread Vladimir Davydov
From: Glauber Costa I caught myself doing something like the following outside memcg core: memcg_id = -1; if (memcg && memcg_kmem_is_active(memcg)) memcg_id = memcg_cache_id(memcg); to be able to handle all possible memcgs in a sane manner. In particular, the

[PATCH v11 01/15] memcg: make cache index determination more robust

2013-11-25 Thread Vladimir Davydov
From: Glauber Costa glom...@openvz.org I caught myself doing something like the following outside memcg core: memcg_id = -1; if (memcg memcg_kmem_is_active(memcg)) memcg_id = memcg_cache_id(memcg); to be able to handle all possible memcgs in a sane manner. In

[PATCH v11 01/15] memcg: make cache index determination more robust

2013-10-24 Thread Vladimir Davydov
From: Glauber Costa I caught myself doing something like the following outside memcg core: memcg_id = -1; if (memcg && memcg_kmem_is_active(memcg)) memcg_id = memcg_cache_id(memcg); to be able to handle all possible memcgs in a sane manner. In particular, the

[PATCH v11 01/15] memcg: make cache index determination more robust

2013-10-24 Thread Vladimir Davydov
From: Glauber Costa glom...@openvz.org I caught myself doing something like the following outside memcg core: memcg_id = -1; if (memcg memcg_kmem_is_active(memcg)) memcg_id = memcg_cache_id(memcg); to be able to handle all possible memcgs in a sane manner. In