lkml.org 
[lkml]   [2008]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -mm 11/24] pageflag helpers for configed-out flags
From: Lee Schermerhorn <lee.schermerhorn@hp.com>

Define proper false/noop inline functions for noreclaim page
flags when !defined(CONFIG_NORECLAIM_LRU)

Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
Signed-off-by: Rik van Riel <riel@redhat.com>

---
include/linux/page-flags.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
Index: linux-2.6.26-rc5-mm2/include/linux/page-flags.h
===================================================================
--- linux-2.6.26-rc5-mm2.orig/include/linux/page-flags.h 2008-06-10 13:34:48.000000000 -0400
+++ linux-2.6.26-rc5-mm2/include/linux/page-flags.h 2008-06-10 13:44:55.000000000 -0400
@@ -162,6 +162,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



\
 
 \ /
  Last update: 2008-06-11 20:59    [from the cache]
©2003-2011 Jasper Spaans