memcg: bugfix check mem_cgroup_disabled() at split fixup

mem_cgroup_disabled() should be checked at splitting. If disabled, no
heavy work is necesary.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Reviewed-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Balbir Singh <balbir@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by KAMEZAWA Hiroyuki and committed by Linus Torvalds 3d37c4a9 01c88e2d

+2
+2
mm/memcontrol.c
··· 2145 struct page_cgroup *tail_pc = lookup_page_cgroup(tail); 2146 unsigned long flags; 2147 2148 /* 2149 * We have no races with charge/uncharge but will have races with 2150 * page state accounting.
··· 2145 struct page_cgroup *tail_pc = lookup_page_cgroup(tail); 2146 unsigned long flags; 2147 2148 + if (mem_cgroup_disabled()) 2149 + return; 2150 /* 2151 * We have no races with charge/uncharge but will have races with 2152 * page state accounting.