|
@@ -1537,23 +1537,13 @@ static inline void vm_stat_account(struct mm_struct *mm,
|
|
|
#endif /* CONFIG_PROC_FS */
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PAGEALLOC
|
|
|
-extern int debug_pagealloc_enabled;
|
|
|
-
|
|
|
extern void kernel_map_pages(struct page *page, int numpages, int enable);
|
|
|
-
|
|
|
-static inline void enable_debug_pagealloc(void)
|
|
|
-{
|
|
|
- debug_pagealloc_enabled = 1;
|
|
|
-}
|
|
|
#ifdef CONFIG_HIBERNATION
|
|
|
extern bool kernel_page_present(struct page *page);
|
|
|
#endif /* CONFIG_HIBERNATION */
|
|
|
#else
|
|
|
static inline void
|
|
|
kernel_map_pages(struct page *page, int numpages, int enable) {}
|
|
|
-static inline void enable_debug_pagealloc(void)
|
|
|
-{
|
|
|
-}
|
|
|
#ifdef CONFIG_HIBERNATION
|
|
|
static inline bool kernel_page_present(struct page *page) { return true; }
|
|
|
#endif /* CONFIG_HIBERNATION */
|