diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mm.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 3dc3a8c2c485..0a22db144753 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
| @@ -1537,23 +1537,13 @@ static inline void vm_stat_account(struct mm_struct *mm, | |||
| 1537 | #endif /* CONFIG_PROC_FS */ | 1537 | #endif /* CONFIG_PROC_FS */ |
| 1538 | 1538 | ||
| 1539 | #ifdef CONFIG_DEBUG_PAGEALLOC | 1539 | #ifdef CONFIG_DEBUG_PAGEALLOC |
| 1540 | extern int debug_pagealloc_enabled; | ||
| 1541 | |||
| 1542 | extern void kernel_map_pages(struct page *page, int numpages, int enable); | 1540 | extern void kernel_map_pages(struct page *page, int numpages, int enable); |
| 1543 | |||
| 1544 | static inline void enable_debug_pagealloc(void) | ||
| 1545 | { | ||
| 1546 | debug_pagealloc_enabled = 1; | ||
| 1547 | } | ||
| 1548 | #ifdef CONFIG_HIBERNATION | 1541 | #ifdef CONFIG_HIBERNATION |
| 1549 | extern bool kernel_page_present(struct page *page); | 1542 | extern bool kernel_page_present(struct page *page); |
| 1550 | #endif /* CONFIG_HIBERNATION */ | 1543 | #endif /* CONFIG_HIBERNATION */ |
| 1551 | #else | 1544 | #else |
| 1552 | static inline void | 1545 | static inline void |
| 1553 | kernel_map_pages(struct page *page, int numpages, int enable) {} | 1546 | kernel_map_pages(struct page *page, int numpages, int enable) {} |
| 1554 | static inline void enable_debug_pagealloc(void) | ||
| 1555 | { | ||
| 1556 | } | ||
| 1557 | #ifdef CONFIG_HIBERNATION | 1547 | #ifdef CONFIG_HIBERNATION |
| 1558 | static inline bool kernel_page_present(struct page *page) { return true; } | 1548 | static inline bool kernel_page_present(struct page *page) { return true; } |
| 1559 | #endif /* CONFIG_HIBERNATION */ | 1549 | #endif /* CONFIG_HIBERNATION */ |
