|
@@ -1745,8 +1745,10 @@ __alloc_pages_slowpath(gfp_t gfp_mask, unsigned int order,
|
|
* be using allocators in order of preference for an area that is
|
|
* be using allocators in order of preference for an area that is
|
|
* too large.
|
|
* too large.
|
|
*/
|
|
*/
|
|
- if (WARN_ON_ONCE(order >= MAX_ORDER))
|
|
|
|
|
|
+ if (order >= MAX_ORDER) {
|
|
|
|
+ WARN_ON_ONCE(!(gfp_mask & __GFP_NOWARN));
|
|
return NULL;
|
|
return NULL;
|
|
|
|
+ }
|
|
|
|
|
|
/*
|
|
/*
|
|
* GFP_THISNODE (meaning __GFP_THISNODE, __GFP_NORETRY and
|
|
* GFP_THISNODE (meaning __GFP_THISNODE, __GFP_NORETRY and
|