]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: move memcg_stock initialization to mem_cgroup_init
authorMichal Hocko <mhocko@suse.cz>
Thu, 7 Feb 2013 01:27:10 +0000 (12:27 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:53 +0000 (16:46 +1100)
commit45a710c0e5c2783a09078731ef40dabed0b56b36
tree2ed3193c4263b69d2394d5409a1cc39868f5fc06
parentdb81c8e07dd8c297ccb2ef30f66c8cead130fcbc
memcg: move memcg_stock initialization to mem_cgroup_init

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 wraps the current memcg_stock initialization code into a helper
calls it from the controller subsystem initialization code.

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Tejun Heo <htejun@gmail.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c