aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/page_ext.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/page_ext.h')
-rw-r--r--include/linux/page_ext.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/page_ext.h b/include/linux/page_ext.h
index 2ccc8b414e5c..61c0f05f9069 100644
--- a/include/linux/page_ext.h
+++ b/include/linux/page_ext.h
@@ -10,6 +10,21 @@ struct page_ext_operations {
10#ifdef CONFIG_PAGE_EXTENSION 10#ifdef CONFIG_PAGE_EXTENSION
11 11
12/* 12/*
13 * page_ext->flags bits:
14 *
15 * PAGE_EXT_DEBUG_POISON is set for poisoned pages. This is used to
16 * implement generic debug pagealloc feature. The pages are filled with
17 * poison patterns and set this flag after free_pages(). The poisoned
18 * pages are verified whether the patterns are not corrupted and clear
19 * the flag before alloc_pages().
20 */
21
22enum page_ext_flags {
23 PAGE_EXT_DEBUG_POISON, /* Page is poisoned */
24 PAGE_EXT_DEBUG_GUARD,
25};
26
27/*
13 * Page Extension can be considered as an extended mem_map. 28 * Page Extension can be considered as an extended mem_map.
14 * A page_ext page is associated with every page descriptor. The 29 * A page_ext page is associated with every page descriptor. The
15 * page_ext helps us add more information about the page. 30 * page_ext helps us add more information about the page.