aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLee Schermerhorn <lee.schermerhorn@hp.com>2008-10-18 23:26:37 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-20 11:50:26 -0400
commit8a7a8544a4f6554ec2d8048ac9f9672f442db5a2 (patch)
tree9d64d0774f5aeb2828c51b19bce02c1e63c4725e /include
parent33c120ed2843090e2bd316de1588b8bf8b96cbde (diff)
pageflag helpers for configed-out flags
Define proper false/noop inline functions for noreclaim page flags when !defined(CONFIG_UNEVICTABLE_LRU) Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com> Signed-off-by: Rik van Riel <riel@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/page-flags.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 57b688cfb5e2..3d31616dcd23 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -162,6 +162,18 @@ static inline int Page##uname(struct page *page) \
162#define TESTSCFLAG(uname, lname) \ 162#define TESTSCFLAG(uname, lname) \
163 TESTSETFLAG(uname, lname) TESTCLEARFLAG(uname, lname) 163 TESTSETFLAG(uname, lname) TESTCLEARFLAG(uname, lname)
164 164
165#define SETPAGEFLAG_NOOP(uname) \
166static inline void SetPage##uname(struct page *page) { }
167
168#define CLEARPAGEFLAG_NOOP(uname) \
169static inline void ClearPage##uname(struct page *page) { }
170
171#define __CLEARPAGEFLAG_NOOP(uname) \
172static inline void __ClearPage##uname(struct page *page) { }
173
174#define TESTCLEARFLAG_FALSE(uname) \
175static inline int TestClearPage##uname(struct page *page) { return 0; }
176
165struct page; /* forward declaration */ 177struct page; /* forward declaration */
166 178
167TESTPAGEFLAG(Locked, locked) 179TESTPAGEFLAG(Locked, locked)