From: David Rientjes Date: Tue, 31 Jul 2012 23:43:48 +0000 (-0700) Subject: mm, memcg: move all oom handling to memcontrol.c X-Git-Tag: v3.6-rc1~24^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=876aafbfd9ba5bb352f1b14622c27f3fe9a99013;p=pandora-kernel.git mm, memcg: move all oom handling to memcontrol.c By globally defining check_panic_on_oom(), the memcg oom handler can be moved entirely to mm/memcontrol.c. This removes the ugly #ifdef in the oom killer and cleans up the code. Signed-off-by: David Rientjes Cc: KAMEZAWA Hiroyuki Acked-by: Michal Hocko Cc: Oleg Nesterov Cc: KOSAKI Motohiro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed