diff options
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 3cee76a8c9f0..2e01af365848 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -190,7 +190,8 @@ static struct vm_struct *__get_vm_area_node(unsigned long size, unsigned long fl | |||
190 | if (unlikely(!size)) | 190 | if (unlikely(!size)) |
191 | return NULL; | 191 | return NULL; |
192 | 192 | ||
193 | area = kmalloc_node(sizeof(*area), gfp_mask & GFP_LEVEL_MASK, node); | 193 | area = kmalloc_node(sizeof(*area), gfp_mask & GFP_RECLAIM_MASK, node); |
194 | |||
194 | if (unlikely(!area)) | 195 | if (unlikely(!area)) |
195 | return NULL; | 196 | return NULL; |
196 | 197 | ||
@@ -439,7 +440,7 @@ void *__vmalloc_area_node(struct vm_struct *area, gfp_t gfp_mask, | |||
439 | area->flags |= VM_VPAGES; | 440 | area->flags |= VM_VPAGES; |
440 | } else { | 441 | } else { |
441 | pages = kmalloc_node(array_size, | 442 | pages = kmalloc_node(array_size, |
442 | (gfp_mask & GFP_LEVEL_MASK) | __GFP_ZERO, | 443 | (gfp_mask & GFP_RECLAIM_MASK) | __GFP_ZERO, |
443 | node); | 444 | node); |
444 | } | 445 | } |
445 | area->pages = pages; | 446 | area->pages = pages; |