aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/gfp.h9
-rw-r--r--include/linux/mm.h1
2 files changed, 9 insertions, 1 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
diff --git a/include/linux/mm.h b/include/linux/mm.h
index a880161a3854..7b548e7cfbd9 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -7,7 +7,6 @@
7 7
8#include <linux/gfp.h> 8#include <linux/gfp.h>
9#include <linux/list.h> 9#include <linux/list.h>
10#include <linux/mmdebug.h>
11#include <linux/mmzone.h> 10#include <linux/mmzone.h>
12#include <linux/rbtree.h> 11#include <linux/rbtree.h>
13#include <linux/prio_tree.h> 12#include <linux/prio_tree.h>