[PATCH v11 02/15] memcg: consolidate callers of memcg_cache_id

2013-11-25 Thread Vladimir Davydov
From: Glauber Costa Each caller of memcg_cache_id ends up sanitizing its parameters in its own way. Now that the memcg_cache_id itself is more robust, we can consolidate this. Also, as suggested by Michal, a special helper memcg_cache_idx is used when the result is expected to be used directly

[PATCH v11 02/15] memcg: consolidate callers of memcg_cache_id

2013-11-25 Thread Vladimir Davydov
From: Glauber Costa glom...@openvz.org Each caller of memcg_cache_id ends up sanitizing its parameters in its own way. Now that the memcg_cache_id itself is more robust, we can consolidate this. Also, as suggested by Michal, a special helper memcg_cache_idx is used when the result is expected to

[PATCH v11 02/15] memcg: consolidate callers of memcg_cache_id

2013-10-24 Thread Vladimir Davydov
From: Glauber Costa Each caller of memcg_cache_id ends up sanitizing its parameters in its own way. Now that the memcg_cache_id itself is more robust, we can consolidate this. Also, as suggested by Michal, a special helper memcg_cache_idx is used when the result is expected to be used directly

[PATCH v11 02/15] memcg: consolidate callers of memcg_cache_id

2013-10-24 Thread Vladimir Davydov
From: Glauber Costa glom...@openvz.org Each caller of memcg_cache_id ends up sanitizing its parameters in its own way. Now that the memcg_cache_id itself is more robust, we can consolidate this. Also, as suggested by Michal, a special helper memcg_cache_idx is used when the result is expected to