aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/page-flags.h
diff options
context:
space:
mode:
authorChristoph Lameter <clameter@sgi.com>2008-04-28 05:12:52 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 11:58:22 -0400
commit602c4d112f9abf43af4b882b4a6f5505ed5c51b7 (patch)
tree8c2cdb82fbf4c67899a3cab0ea0f2d3e2a3ffdfe /include/linux/page-flags.h
parent0a128b2b1a5e8ebce0260e3345812ee70daccc7f (diff)
page flags: handle PG_uncached like all other flags
Remove the special setup for PG_uncached and simply make it part of the enum. The page flag will only be allocated when the kernel build includes the uncached allocator. Acked-by: Dean Nelson <dcn@sgi.com> Cc: Jes Sorensen <jes@trained-monkey.org> Signed-off-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/page-flags.h')
-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)