aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/page-flags.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-06-16 05:21:27 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-16 05:21:27 -0400
commit688d22e23ab1caacb2c36c615854294b58f2ea47 (patch)
tree95c8163c0b1f56902f5537bc256d7e5507f56cee /include/linux/page-flags.h
parent7e0edc1bc343231029084761ebf59e522902eb49 (diff)
parent066519068ad2fbe98c7f45552b1f592903a9c8c8 (diff)
Merge branch 'linus' into x86/xen
Diffstat (limited to 'include/linux/page-flags.h')
-rw-r--r--include/linux/page-flags.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 02955a1c3d76..0d2a4e7012aa 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -307,5 +307,29 @@ static inline void __ClearPageTail(struct page *page)
307} 307}
308 308
309#endif /* !PAGEFLAGS_EXTENDED */ 309#endif /* !PAGEFLAGS_EXTENDED */
310
311#define PAGE_FLAGS (1 << PG_lru | 1 << PG_private | 1 << PG_locked | \
312 1 << PG_buddy | 1 << PG_writeback | \
313 1 << PG_slab | 1 << PG_swapcache | 1 << PG_active)
314
315/*
316 * Flags checked in bad_page(). Pages on the free list should not have
317 * these flags set. It they are, there is a problem.
318 */
319#define PAGE_FLAGS_CLEAR_WHEN_BAD (PAGE_FLAGS | 1 << PG_reclaim | 1 << PG_dirty)
320
321/*
322 * Flags checked when a page is freed. Pages being freed should not have
323 * these flags set. It they are, there is a problem.
324 */
325#define PAGE_FLAGS_CHECK_AT_FREE (PAGE_FLAGS | 1 << PG_reserved)
326
327/*
328 * Flags checked when a page is prepped for return by the page allocator.
329 * Pages being prepped should not have these flags set. It they are, there
330 * is a problem.
331 */
332#define PAGE_FLAGS_CHECK_AT_PREP (PAGE_FLAGS | 1 << PG_reserved | 1 << PG_dirty)
333
310#endif /* !__GENERATING_BOUNDS_H */ 334#endif /* !__GENERATING_BOUNDS_H */
311#endif /* PAGE_FLAGS_H */ 335#endif /* PAGE_FLAGS_H */