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.h9
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) \
138static inline int Page##uname(struct page *page) \ 135static 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) \
176static inline int Page##uname(struct page *page) \ 173static 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.