X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fgfp.h;fp=include%2Flinux%2Fgfp.h;h=83ece62bc3ba2ee6a4a45b6abbcce4bb08e6bc7a;hb=4e76c8a9fa413ccc09d3f7f664183dcce3555d57;hp=a308228b79f26b0236e6833539242fd1c5afc46d;hpb=1db395853d4f30d6120458bd279ede1f882a8525;p=linux-2.6.git diff --git a/include/linux/gfp.h b/include/linux/gfp.h index a308228b7..83ece62bc 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -100,7 +100,11 @@ static inline int gfp_zone(gfp_t gfp) */ #ifndef HAVE_ARCH_FREE_PAGE -static inline void arch_free_page(struct page *page, int order) { } +/* + * If arch_free_page returns non-zero then the generic free_page code can + * immediately bail: the arch-specific function has done all the work. + */ +static inline int arch_free_page(struct page *page, int order) { return 0; } #endif extern struct page *