aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gfp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/gfp.h')
-rw-r--r--include/linux/gfp.h9
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
9struct vm_area_struct; 10struct 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
196static 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
196extern struct page *alloc_pages_current(gfp_t gfp_mask, unsigned order); 205extern struct page *alloc_pages_current(gfp_t gfp_mask, unsigned order);
197 206