diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 47a10f488b66..2f756ca4eb3c 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3781,7 +3781,7 @@ retry: * 3) ALLOC_HARDER - Allow (__GFP_ATOMIC && !__GFP_NOMEMALLOC), * of the others. */ - if (unlikely(!order && (alloc_flags & ALLOC_WMARK_MIN) && + if (unlikely(!order && !(alloc_flags & ALLOC_WMARK_MASK) && (alloc_flags & (ALLOC_HARDER | ALLOC_HIGH)))) { mark = zone->_watermark[WMARK_MIN]; }