aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/page-flags.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/page-flags.h')
-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)