aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmzone.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mmzone.h')
-rw-r--r--include/linux/mmzone.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 3879d7664dfc..2f0856d14b21 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -722,6 +722,9 @@ typedef struct pglist_data {
722 int nr_zones; 722 int nr_zones;
723#ifdef CONFIG_FLAT_NODE_MEM_MAP /* means !SPARSEMEM */ 723#ifdef CONFIG_FLAT_NODE_MEM_MAP /* means !SPARSEMEM */
724 struct page *node_mem_map; 724 struct page *node_mem_map;
725#ifdef CONFIG_PAGE_EXTENSION
726 struct page_ext *node_page_ext;
727#endif
725#endif 728#endif
726#ifndef CONFIG_NO_BOOTMEM 729#ifndef CONFIG_NO_BOOTMEM
727 struct bootmem_data *bdata; 730 struct bootmem_data *bdata;
@@ -1075,6 +1078,7 @@ static inline unsigned long early_pfn_to_nid(unsigned long pfn)
1075#define SECTION_ALIGN_DOWN(pfn) ((pfn) & PAGE_SECTION_MASK) 1078#define SECTION_ALIGN_DOWN(pfn) ((pfn) & PAGE_SECTION_MASK)
1076 1079
1077struct page; 1080struct page;
1081struct page_ext;
1078struct mem_section { 1082struct mem_section {
1079 /* 1083 /*
1080 * This is, logically, a pointer to an array of struct 1084 * This is, logically, a pointer to an array of struct
@@ -1092,6 +1096,14 @@ struct mem_section {
1092 1096
1093 /* See declaration of similar field in struct zone */ 1097 /* See declaration of similar field in struct zone */
1094 unsigned long *pageblock_flags; 1098 unsigned long *pageblock_flags;
1099#ifdef CONFIG_PAGE_EXTENSION
1100 /*
1101 * If !SPARSEMEM, pgdat doesn't have page_ext pointer. We use
1102 * section. (see page_ext.h about this.)
1103 */
1104 struct page_ext *page_ext;
1105 unsigned long pad;
1106#endif
1095 /* 1107 /*
1096 * WARNING: mem_section must be a power-of-2 in size for the 1108 * WARNING: mem_section must be a power-of-2 in size for the
1097 * calculation and use of SECTION_ROOT_MASK to make sense. 1109 * calculation and use of SECTION_ROOT_MASK to make sense.