|
@@ -173,11 +173,24 @@ static inline void arch_free_page(struct page *page, int order) { }
|
|
static inline void arch_alloc_page(struct page *page, int order) { }
|
|
static inline void arch_alloc_page(struct page *page, int order) { }
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-extern struct page *__alloc_pages(gfp_t, unsigned int, struct zonelist *);
|
|
|
|
|
|
+struct page *
|
|
|
|
+__alloc_pages_internal(gfp_t gfp_mask, unsigned int order,
|
|
|
|
+ struct zonelist *zonelist, nodemask_t *nodemask);
|
|
|
|
+
|
|
|
|
+static inline struct page *
|
|
|
|
+__alloc_pages(gfp_t gfp_mask, unsigned int order,
|
|
|
|
+ struct zonelist *zonelist)
|
|
|
|
+{
|
|
|
|
+ return __alloc_pages_internal(gfp_mask, order, zonelist, NULL);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static inline struct page *
|
|
|
|
+__alloc_pages_nodemask(gfp_t gfp_mask, unsigned int order,
|
|
|
|
+ struct zonelist *zonelist, nodemask_t *nodemask)
|
|
|
|
+{
|
|
|
|
+ return __alloc_pages_internal(gfp_mask, order, zonelist, nodemask);
|
|
|
|
+}
|
|
|
|
|
|
-extern struct page *
|
|
|
|
-__alloc_pages_nodemask(gfp_t, unsigned int,
|
|
|
|
- struct zonelist *, nodemask_t *nodemask);
|
|
|
|
|
|
|
|
static inline struct page *alloc_pages_node(int nid, gfp_t gfp_mask,
|
|
static inline struct page *alloc_pages_node(int nid, gfp_t gfp_mask,
|
|
unsigned int order)
|
|
unsigned int order)
|