diff options
Diffstat (limited to 'include/linux/page-flags.h')
-rw-r--r-- | include/linux/page-flags.h | 12 |
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) \ | ||
166 | static inline void SetPage##uname(struct page *page) { } | ||
167 | |||
168 | #define CLEARPAGEFLAG_NOOP(uname) \ | ||
169 | static inline void ClearPage##uname(struct page *page) { } | ||
170 | |||
171 | #define __CLEARPAGEFLAG_NOOP(uname) \ | ||
172 | static inline void __ClearPage##uname(struct page *page) { } | ||
173 | |||
174 | #define TESTCLEARFLAG_FALSE(uname) \ | ||
175 | static inline int TestClearPage##uname(struct page *page) { return 0; } | ||
176 | |||
165 | struct page; /* forward declaration */ | 177 | struct page; /* forward declaration */ |
166 | 178 | ||
167 | TESTPAGEFLAG(Locked, locked) | 179 | TESTPAGEFLAG(Locked, locked) |