mm: add a helper function to check may oom condition
authorQiang Huang <h.huangqiang@huawei.com>
Tue, 12 Nov 2013 23:07:22 +0000 (15:07 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:04 +0000 (12:09 +0900)
commitb9921ecdee66984b00c38c00a358ef3f611d2b50
treecaf420f152f6c8764f150ad336645deec9acaeb2
parent9c2606b77d6bffb422928bca66c8dc84d85089be
mm: add a helper function to check may oom condition

Use helper function to check if we need to deal with oom condition.

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/oom.h
mm/memcontrol.c
mm/page_alloc.c