Skip to content

Commit 142d44b

Browse files
Amerigo Wanghtejun
authored andcommitted
percpu: use the right flag for get_vm_area()
get_vm_area() only accepts VM_* flags, not GFP_*. And according to the doc of get_vm_area(), here should be VM_ALLOC. Signed-off-by: WANG Cong <amwang@redhat.com> Acked-by: Tejun Heo <tj@kernel.org> Cc: Ingo Molnar <mingo@elte.hu>
1 parent 74d46d6 commit 142d44b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/percpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ static struct pcpu_chunk *alloc_pcpu_chunk(void)
749749
chunk->map[chunk->map_used++] = pcpu_unit_size;
750750
chunk->page = chunk->page_ar;
751751

752-
chunk->vm = get_vm_area(pcpu_chunk_size, GFP_KERNEL);
752+
chunk->vm = get_vm_area(pcpu_chunk_size, VM_ALLOC);
753753
if (!chunk->vm) {
754754
free_pcpu_chunk(chunk);
755755
return NULL;

0 commit comments

Comments
 (0)