projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74d46d6
)
percpu: use the right flag for get_vm_area()
author
Amerigo Wang
<
[email protected]
>
Thu, 13 Aug 2009 06:00:13 +0000
(
02:00
-0400)
committer
Tejun Heo
<
[email protected]
>
Fri, 14 Aug 2009 04:21:10 +0000
(13:21 +0900)
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]
>
mm/percpu.c
patch
|
blob
|
history
diff --git
a/mm/percpu.c
b/mm/percpu.c
index e0be1146f617e7461aa57efdca3779d72c8928c7..5fe37842e0ea3689bcdf24ec1d77e681ba27a55c 100644
(file)
--- a/
mm/percpu.c
+++ b/
mm/percpu.c
@@
-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;