diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_alloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 0bd4d82ddfff..3da85b81dabb 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -1350,6 +1350,10 @@ nofail_alloc: | |||
1350 | if (page) | 1350 | if (page) |
1351 | goto got_pg; | 1351 | goto got_pg; |
1352 | 1352 | ||
1353 | /* The OOM killer will not help higher order allocs so fail */ | ||
1354 | if (order > PAGE_ALLOC_COSTLY_ORDER) | ||
1355 | goto nopage; | ||
1356 | |||
1353 | out_of_memory(zonelist, gfp_mask, order); | 1357 | out_of_memory(zonelist, gfp_mask, order); |
1354 | goto restart; | 1358 | goto restart; |
1355 | } | 1359 | } |