Hirokazu Takahashi f8d6654226 memcg: add mem_cgroup_disabled()
We check mem_cgroup is disabled or not by checking
mem_cgroup_subsys.disabled.  I think it has more references than expected,
now.

replacing
   if (mem_cgroup_subsys.disabled)
with
   if (mem_cgroup_disabled())

give us good look, I think.

[kamezawa.hiroyu@jp.fujitsu.com: fix typo]
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-01-08 08:31:05 -08:00
..
2008-12-29 11:27:46 +02:00
2009-01-06 15:59:09 -08:00
2009-01-06 15:59:14 -08:00
2009-01-06 15:59:08 -08:00
2009-01-08 08:31:05 -08:00
2009-01-08 08:31:05 -08:00
2008-11-14 11:29:12 +11:00
2009-01-08 08:31:04 -08:00
2009-01-06 15:59:10 -08:00
2009-01-05 17:44:42 -08:00
2009-01-05 11:54:28 -05:00
2009-01-05 11:54:28 -05:00
2009-01-08 08:31:05 -08:00
2009-01-01 10:12:29 +10:30
2009-01-08 08:31:05 -08:00
2009-01-01 10:12:29 +10:30
2008-11-30 10:03:35 -08:00
2009-01-08 08:31:05 -08:00
2009-01-08 08:31:05 -08:00
2009-01-08 08:31:05 -08:00
2009-01-08 08:31:05 -08:00
2009-01-01 10:12:29 +10:30