diff options
Diffstat (limited to 'mm/page_alloc.c')
| -rw-r--r-- | mm/page_alloc.c | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 23f5066bd4a5..eaa227a479e4 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5103,6 +5103,11 @@ refill:  		if (!page_ref_sub_and_test(page, nc->pagecnt_bias))  			goto refill; +		if (unlikely(nc->pfmemalloc)) { +			free_the_page(page, compound_order(page)); +			goto refill; +		} +  #if (PAGE_SIZE < PAGE_FRAG_CACHE_MAX_SIZE)  		/* if size can vary use size else just use PAGE_SIZE */  		size = nc->size;  | 
