From: Johannes Weiner Date: Wed, 10 Dec 2014 23:44:30 +0000 (-0800) Subject: mm: memcontrol: pull the NULL check from __mem_cgroup_same_or_subtree() X-Git-Tag: omap-for-v3.20/drop-legacy-3517~139^2~119 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=413918bb61b4fa027baa3e79546c47f15e4b9ea8;p=pandora-kernel.git mm: memcontrol: pull the NULL check from __mem_cgroup_same_or_subtree() The NULL in mm_match_cgroup() comes from a possibly exiting mm->owner. It makes a lot more sense to check where it's looked up, rather than check for it in __mem_cgroup_same_or_subtree() where it's unexpected. No other callsite passes NULL to __mem_cgroup_same_or_subtree(). Signed-off-by: Johannes Weiner Reviewed-by: Vladimir Davydov Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed