From: Lee Schermerhorn Define proper false/noop inline functions for noreclaim page flags when !defined(CONFIG_NORECLAIM_LRU) Signed-off-by: Lee Schermerhorn Signed-off-by: Rik van Riel --- include/linux/page-flags.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) Index: linux-2.6.26-rc2-mm1/include/linux/page-flags.h =================================================================== --- linux-2.6.26-rc2-mm1.orig/include/linux/page-flags.h 2008-05-23 14:50:58.000000000 -0400 +++ linux-2.6.26-rc2-mm1/include/linux/page-flags.h 2008-05-23 14:53:41.000000000 -0400 @@ -147,6 +147,18 @@ static inline int Page##uname(struct pag #define TESTSCFLAG(uname, lname) \ TESTSETFLAG(uname, lname) TESTCLEARFLAG(uname, lname) +#define SETPAGEFLAG_NOOP(uname) \ +static inline void SetPage##uname(struct page *page) { } + +#define CLEARPAGEFLAG_NOOP(uname) \ +static inline void ClearPage##uname(struct page *page) { } + +#define __CLEARPAGEFLAG_NOOP(uname) \ +static inline void __ClearPage##uname(struct page *page) { } + +#define TESTCLEARFLAG_FALSE(uname) \ +static inline int TestClearPage##uname(struct page *page) { return 0; } + struct page; /* forward declaration */ PAGEFLAG(Locked, locked) TESTSCFLAG(Locked, locked) -- All Rights Reversed -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/