diff options
Diffstat (limited to 'include/linux/gfp.h')
-rw-r--r-- | include/linux/gfp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/gfp.h b/include/linux/gfp.h index c2d3fe03b5d2..4efa33088a82 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <linux/stddef.h> | 5 | #include <linux/stddef.h> |
6 | #include <linux/linkage.h> | 6 | #include <linux/linkage.h> |
7 | #include <linux/topology.h> | 7 | #include <linux/topology.h> |
8 | #include <linux/mmdebug.h> | ||
8 | 9 | ||
9 | struct vm_area_struct; | 10 | struct vm_area_struct; |
10 | 11 | ||
@@ -192,6 +193,14 @@ static inline struct page *alloc_pages_node(int nid, gfp_t gfp_mask, | |||
192 | return __alloc_pages(gfp_mask, order, node_zonelist(nid, gfp_mask)); | 193 | return __alloc_pages(gfp_mask, order, node_zonelist(nid, gfp_mask)); |
193 | } | 194 | } |
194 | 195 | ||
196 | static inline struct page *alloc_pages_exact_node(int nid, gfp_t gfp_mask, | ||
197 | unsigned int order) | ||
198 | { | ||
199 | VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES); | ||
200 | |||
201 | return __alloc_pages(gfp_mask, order, node_zonelist(nid, gfp_mask)); | ||
202 | } | ||
203 | |||
195 | #ifdef CONFIG_NUMA | 204 | #ifdef CONFIG_NUMA |
196 | extern struct page *alloc_pages_current(gfp_t gfp_mask, unsigned order); | 205 | extern struct page *alloc_pages_current(gfp_t gfp_mask, unsigned order); |
197 | 206 | ||