diff options
Diffstat (limited to 'include/linux/page-flags.h')
-rw-r--r-- | include/linux/page-flags.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 6081493db68..e90a673be67 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h | |||
@@ -124,9 +124,6 @@ enum pageflags { | |||
124 | 124 | ||
125 | /* SLOB */ | 125 | /* SLOB */ |
126 | PG_slob_free = PG_private, | 126 | PG_slob_free = PG_private, |
127 | |||
128 | /* SLUB */ | ||
129 | PG_slub_frozen = PG_active, | ||
130 | }; | 127 | }; |
131 | 128 | ||
132 | #ifndef __GENERATING_BOUNDS_H | 129 | #ifndef __GENERATING_BOUNDS_H |
@@ -135,7 +132,7 @@ enum pageflags { | |||
135 | * Macros to create function definitions for page flags | 132 | * Macros to create function definitions for page flags |
136 | */ | 133 | */ |
137 | #define TESTPAGEFLAG(uname, lname) \ | 134 | #define TESTPAGEFLAG(uname, lname) \ |
138 | static inline int Page##uname(struct page *page) \ | 135 | static inline int Page##uname(const struct page *page) \ |
139 | { return test_bit(PG_##lname, &page->flags); } | 136 | { return test_bit(PG_##lname, &page->flags); } |
140 | 137 | ||
141 | #define SETPAGEFLAG(uname, lname) \ | 138 | #define SETPAGEFLAG(uname, lname) \ |
@@ -173,7 +170,7 @@ static inline int __TestClearPage##uname(struct page *page) \ | |||
173 | __SETPAGEFLAG(uname, lname) __CLEARPAGEFLAG(uname, lname) | 170 | __SETPAGEFLAG(uname, lname) __CLEARPAGEFLAG(uname, lname) |
174 | 171 | ||
175 | #define PAGEFLAG_FALSE(uname) \ | 172 | #define PAGEFLAG_FALSE(uname) \ |
176 | static inline int Page##uname(struct page *page) \ | 173 | static inline int Page##uname(const struct page *page) \ |
177 | { return 0; } | 174 | { return 0; } |
178 | 175 | ||
179 | #define TESTSCFLAG(uname, lname) \ | 176 | #define TESTSCFLAG(uname, lname) \ |
@@ -212,8 +209,6 @@ PAGEFLAG(SwapBacked, swapbacked) __CLEARPAGEFLAG(SwapBacked, swapbacked) | |||
212 | 209 | ||
213 | __PAGEFLAG(SlobFree, slob_free) | 210 | __PAGEFLAG(SlobFree, slob_free) |
214 | 211 | ||
215 | __PAGEFLAG(SlubFrozen, slub_frozen) | ||
216 | |||
217 | /* | 212 | /* |
218 | * Private page markings that may be used by the filesystem that owns the page | 213 | * Private page markings that may be used by the filesystem that owns the page |
219 | * for its own purposes. | 214 | * for its own purposes. |