get_vm_area() only accepts VM_* flags, not GFP_*. And according to the doc of get_vm_area(), here should be VM_ALLOC.
Unified · Split
| @@ -749,7 +749,7 @@ static struct pcpu_chunk *alloc_pcpu_chunk(void) · 748 unmodified lines | |||
| 749 | chunk->map[chunk->map_used++] = pcpu_unit_size; | 749 | chunk->map[chunk->map_used++] = pcpu_unit_size; |
| 750 | chunk->page = chunk->page_ar; | 750 | chunk->page = chunk->page_ar; |
| 751 | 751 | ||
| 752 | chunk->vm = get_vm_area(pcpu_chunk_size, GFP_KERNEL); | 752 | chunk->vm = get_vm_area(pcpu_chunk_size, VM_ALLOC); |
| 753 | if (!chunk->vm) { | 753 | if (!chunk->vm) { |
| 754 | free_pcpu_chunk(chunk); | 754 | free_pcpu_chunk(chunk); |
| 755 | return NULL; | 755 | return NULL; |