mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
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>
This commit is contained in:
parent
33c120ed28
commit
8a7a8544a4
1 changed files with 12 additions and 0 deletions
|
@ -162,6 +162,18 @@ static inline int Page##uname(struct page *page) \
|
||||||
#define TESTSCFLAG(uname, lname) \
|
#define TESTSCFLAG(uname, lname) \
|
||||||
TESTSETFLAG(uname, lname) TESTCLEARFLAG(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 */
|
struct page; /* forward declaration */
|
||||||
|
|
||||||
TESTPAGEFLAG(Locked, locked)
|
TESTPAGEFLAG(Locked, locked)
|
||||||
|
|
Loading…
Reference in a new issue