X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=include%2Flinux%2Fgfp.h;h=00c314aedab7d8f9487112e9a4d16182185b6332;hb=821836e5baa69b8bc80605f25ad963e721609bc0;hp=8b34aabfe4c61129c78e378365372ae6831bc6c8;hpb=dd77a4ee0f3981693d4229aa1d57cea9e526ff47;p=~andy%2Flinux diff --git a/include/linux/gfp.h b/include/linux/gfp.h index 8b34aabfe4c..00c314aedab 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -67,7 +67,12 @@ struct vm_area_struct; #define GFP_HIGHUSER (__GFP_WAIT | __GFP_IO | __GFP_FS | __GFP_HARDWALL | \ __GFP_HIGHMEM) +#ifdef CONFIG_NUMA #define GFP_THISNODE (__GFP_THISNODE | __GFP_NOWARN | __GFP_NORETRY) +#else +#define GFP_THISNODE 0 +#endif + /* Flag - indicates that the buffer will be suitable for DMA. Ignored on some platforms, used as appropriate on others */ @@ -111,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 *));