History

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.

Amerigo Wang committed 17 years ago

Commit 142d44b1 parent 74d46d61 file · +1 −1Browse files

Unified · Split

mm/percpu.c+1−1
@@ -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;