aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/page-flags.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 437778c703f5..17deafa9eb9b 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -88,16 +88,8 @@ enum pageflags {
88 PG_mappedtodisk, /* Has blocks allocated on-disk */ 88 PG_mappedtodisk, /* Has blocks allocated on-disk */
89 PG_reclaim, /* To be reclaimed asap */ 89 PG_reclaim, /* To be reclaimed asap */
90 PG_buddy, /* Page is free, on buddy lists */ 90 PG_buddy, /* Page is free, on buddy lists */
91 91#ifdef CONFIG_IA64_UNCACHED_ALLOCATOR
92#if (BITS_PER_LONG > 32) 92 PG_uncached, /* Page has been mapped as uncached */
93/*
94 * 64-bit-only flags build down from bit 31
95 *
96 * 32 bit -------------------------------| FIELDS | FLAGS |
97 * 64 bit | FIELDS | ?????? FLAGS |
98 * 63 32 0
99 */
100 PG_uncached = 31, /* Page has been mapped as uncached */
101#endif 93#endif
102 __NR_PAGEFLAGS 94 __NR_PAGEFLAGS
103}; 95};
@@ -194,8 +186,13 @@ static inline int PageSwapCache(struct page *page)
194} 186}
195#endif 187#endif
196 188
197#if (BITS_PER_LONG > 32) 189#ifdef CONFIG_IA64_UNCACHED_ALLOCATOR
198PAGEFLAG(Uncached, uncached) 190PAGEFLAG(Uncached, uncached)
191#else
192static inline int PageUncached(struct page *)
193{
194 return 0;
195}
199#endif 196#endif
200 197
201static inline int PageUptodate(struct page *page) 198static inline int PageUptodate(struct page *page)