|
@@ -4183,10 +4183,11 @@ __alloc_pages_nodemask(gfp_t gfp_mask, unsigned int order, int preferred_nid,
|
|
|
{
|
|
|
struct page *page;
|
|
|
unsigned int alloc_flags = ALLOC_WMARK_LOW;
|
|
|
- gfp_t alloc_mask = gfp_mask; /* The gfp_t that was actually used for allocation */
|
|
|
+ gfp_t alloc_mask; /* The gfp_t that was actually used for allocation */
|
|
|
struct alloc_context ac = { };
|
|
|
|
|
|
gfp_mask &= gfp_allowed_mask;
|
|
|
+ alloc_mask = gfp_mask;
|
|
|
if (!prepare_alloc_pages(gfp_mask, order, preferred_nid, nodemask, &ac, &alloc_mask, &alloc_flags))
|
|
|
return NULL;
|
|
|
|