projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f5f948
)
mm: add alloc_page_vma_node()
author
Andi Kleen
<ak@linux.intel.com>
Sat, 5 Mar 2011 01:36:30 +0000
(17:36 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sat, 5 Mar 2011 01:53:39 +0000
(17:53 -0800)
Add a alloc_page_vma_node that allows passing the "local" node in. Used
in a followon patch.
Acked-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/gfp.h
patch
|
blob
|
history
diff --git
a/include/linux/gfp.h
b/include/linux/gfp.h
index 37b8af5db091400f31036646b731389d76567a3d..dca31761b3110e92f5a0e28e47cef0c60d910cef 100644
(file)
--- a/
include/linux/gfp.h
+++ b/
include/linux/gfp.h
@@
-343,6
+343,8
@@
extern struct page *alloc_pages_vma(gfp_t gfp_mask, int order,
#define alloc_page(gfp_mask) alloc_pages(gfp_mask, 0)
#define alloc_page_vma(gfp_mask, vma, addr) \
alloc_pages_vma(gfp_mask, 0, vma, addr, numa_node_id())
+#define alloc_page_vma_node(gfp_mask, vma, addr, node) \
+ alloc_pages_vma(gfp_mask, 0, vma, addr, node)
extern unsigned long __get_free_pages(gfp_t gfp_mask, unsigned int order);
extern unsigned long get_zeroed_page(gfp_t gfp_mask);