diff options
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 1897ca223eca..1bba6789a50a 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1118,9 +1118,21 @@ static inline void vm_stat_account(struct mm_struct *mm, | |||
1118 | } | 1118 | } |
1119 | #endif /* CONFIG_PROC_FS */ | 1119 | #endif /* CONFIG_PROC_FS */ |
1120 | 1120 | ||
1121 | #ifndef CONFIG_DEBUG_PAGEALLOC | 1121 | #ifdef CONFIG_DEBUG_PAGEALLOC |
1122 | extern int debug_pagealloc_enabled; | ||
1123 | |||
1124 | extern void kernel_map_pages(struct page *page, int numpages, int enable); | ||
1125 | |||
1126 | static inline void enable_debug_pagealloc(void) | ||
1127 | { | ||
1128 | debug_pagealloc_enabled = 1; | ||
1129 | } | ||
1130 | #else | ||
1122 | static inline void | 1131 | static inline void |
1123 | kernel_map_pages(struct page *page, int numpages, int enable) {} | 1132 | kernel_map_pages(struct page *page, int numpages, int enable) {} |
1133 | static inline void enable_debug_pagealloc(void) | ||
1134 | { | ||
1135 | } | ||
1124 | #endif | 1136 | #endif |
1125 | 1137 | ||
1126 | extern struct vm_area_struct *get_gate_vma(struct task_struct *tsk); | 1138 | extern struct vm_area_struct *get_gate_vma(struct task_struct *tsk); |
@@ -1146,6 +1158,7 @@ extern int randomize_va_space; | |||
1146 | #endif | 1158 | #endif |
1147 | 1159 | ||
1148 | const char * arch_vma_name(struct vm_area_struct *vma); | 1160 | const char * arch_vma_name(struct vm_area_struct *vma); |
1161 | void print_vma_addr(char *prefix, unsigned long rip); | ||
1149 | 1162 | ||
1150 | struct page *sparse_mem_map_populate(unsigned long pnum, int nid); | 1163 | struct page *sparse_mem_map_populate(unsigned long pnum, int nid); |
1151 | pgd_t *vmemmap_pgd_populate(unsigned long addr, int node); | 1164 | pgd_t *vmemmap_pgd_populate(unsigned long addr, int node); |