Skip to content

Commit

Permalink
percpu: use the right flag for get_vm_area()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Cc: Ingo Molnar <[email protected]>
  • Loading branch information
Amerigo Wang authored and htejun committed Aug 14, 2009
1 parent 74d46d6 commit 142d44b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/percpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ static struct pcpu_chunk *alloc_pcpu_chunk(void)
chunk->map[chunk->map_used++] = pcpu_unit_size;
chunk->page = chunk->page_ar;

chunk->vm = get_vm_area(pcpu_chunk_size, GFP_KERNEL);
chunk->vm = get_vm_area(pcpu_chunk_size, VM_ALLOC);
if (!chunk->vm) {
free_pcpu_chunk(chunk);
return NULL;
Expand Down

0 comments on commit 142d44b

Please sign in to comment.