mm: add a helper function to check may oom condition
authorQiang Huang <[email protected]>
Tue, 12 Nov 2013 23:07:22 +0000 (15:07 -0800)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/oom.h
mm/memcontrol.c
mm/page_alloc.c