Re: [PATCH 2/3] memcg: move memcg_stock initialization to mem_cgroup_init

2013-02-05 Thread Johannes Weiner
On Tue, Feb 05, 2013 at 05:24:00PM +0100, Michal Hocko wrote: > memcg_stock are currently initialized during the root cgroup allocation > which is OK but it pointlessly pollutes memcg allocation code with > something that can be called when the memcg subsystem is initialized by > mem_cgroup_init

[PATCH 2/3] memcg: move memcg_stock initialization to mem_cgroup_init

2013-02-05 Thread Michal Hocko
memcg_stock are currently initialized during the root cgroup allocation which is OK but it pointlessly pollutes memcg allocation code with something that can be called when the memcg subsystem is initialized by mem_cgroup_init along with other controller specific parts. This patch wrappes the

[PATCH 2/3] memcg: move memcg_stock initialization to mem_cgroup_init

2013-02-05 Thread Michal Hocko
memcg_stock are currently initialized during the root cgroup allocation which is OK but it pointlessly pollutes memcg allocation code with something that can be called when the memcg subsystem is initialized by mem_cgroup_init along with other controller specific parts. This patch wrappes the

Re: [PATCH 2/3] memcg: move memcg_stock initialization to mem_cgroup_init

2013-02-05 Thread Johannes Weiner
On Tue, Feb 05, 2013 at 05:24:00PM +0100, Michal Hocko wrote: memcg_stock are currently initialized during the root cgroup allocation which is OK but it pointlessly pollutes memcg allocation code with something that can be called when the memcg subsystem is initialized by mem_cgroup_init along