summaryrefslogtreecommitdiffstats
path: root/include/linux/gfp.h
diff options
context:
space:
mode:
authorNick Piggin2006-12-07 05:32:00 +0100
committerLinus Torvalds2006-12-07 17:39:21 +0100
commitcc102509074bba0316f2b5deebd7ef4447da295e (patch)
tree44ac5fc0c0dd7a24e8925e680a03361f4722a5a6 /include/linux/gfp.h
parent[PATCH] new scheme to preempt swap token (diff)
downloadkernel-qcow2-linux-cc102509074bba0316f2b5deebd7ef4447da295e.tar.gz
kernel-qcow2-linux-cc102509074bba0316f2b5deebd7ef4447da295e.tar.xz
kernel-qcow2-linux-cc102509074bba0316f2b5deebd7ef4447da295e.zip
[PATCH] mm: add arch_alloc_page
Add an arch_alloc_page to match arch_free_page. Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/gfp.h')
-rw-r--r--include/linux/gfp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/gfp.h b/include/linux/gfp.h
index bf2b6bc3f6fd..00c314aedab7 100644
--- a/include/linux/gfp.h
+++ b/include/linux/gfp.h
@@ -116,6 +116,9 @@ static inline enum zone_type gfp_zone(gfp_t flags)
#ifndef HAVE_ARCH_FREE_PAGE
static inline void arch_free_page(struct page *page, int order) { }
#endif
+#ifndef HAVE_ARCH_ALLOC_PAGE
+static inline void arch_alloc_page(struct page *page, int order) { }
+#endif
extern struct page *
FASTCALL(__alloc_pages(gfp_t, unsigned int, struct zonelist *));