oom: fold __out_of_memory into out_of_memory
authorDavid Rientjes <rientjes@google.com>
Tue, 10 Aug 2010 00:18:59 +0000 (17:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 10 Aug 2010 03:44:57 +0000 (20:44 -0700)
commit0aad4b3124850e85fe54e610802f0917ce46a1ae
treeebba56659dab4e285b87341d7639fda7a2db81e9
parentf44200320b10c76003101dee21c5f961e80faf0b
oom: fold __out_of_memory into out_of_memory

__out_of_memory() only has a single caller, so fold it into
out_of_memory() and add a comment about locking for its call to
oom_kill_process().

Signed-off-by: David Rientjes <rientjes@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/oom_kill.c