aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2011-11-29 11:05:11 -0500
committerIngo Molnar <mingo@elte.hu>2011-12-06 03:24:07 -0500
commit54c29c635ae91f5d75ced7bffeaa77ba37ca02bb (patch)
treecddf131b5e70809ec5c282f619de0635e45c1cfa /include/linux/mm.h
parent855c743a27bb58a9a521bdc485ef5acfdb69badc (diff)
mm, x86: Remove debug_pagealloc_enabled
When (no)bootmem finish operation, it pass pages to buddy allocator. Since debug_pagealloc_enabled is not set, we will do not protect pages, what is not what we want with CONFIG_DEBUG_PAGEALLOC=y. To fix remove debug_pagealloc_enabled. That variable was introduced by commit 12d6f21e "x86: do not PSE on CONFIG_DEBUG_PAGEALLOC=y" to get more CPA (change page attribude) code testing. But currently we have CONFIG_CPA_DEBUG, which test CPA. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Acked-by: Mel Gorman <mgorman@suse.de> Cc: linux-mm@kvack.org Link: http://lkml.kernel.org/r/1322582711-14571-1-git-send-email-sgruszka@redhat.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h10
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
1540extern int debug_pagealloc_enabled;
1541
1542extern void kernel_map_pages(struct page *page, int numpages, int enable); 1540extern void kernel_map_pages(struct page *page, int numpages, int enable);
1543
1544static inline void enable_debug_pagealloc(void)
1545{
1546 debug_pagealloc_enabled = 1;
1547}
1548#ifdef CONFIG_HIBERNATION 1541#ifdef CONFIG_HIBERNATION
1549extern bool kernel_page_present(struct page *page); 1542extern bool kernel_page_present(struct page *page);
1550#endif /* CONFIG_HIBERNATION */ 1543#endif /* CONFIG_HIBERNATION */
1551#else 1544#else
1552static inline void 1545static inline void
1553kernel_map_pages(struct page *page, int numpages, int enable) {} 1546kernel_map_pages(struct page *page, int numpages, int enable) {}
1554static inline void enable_debug_pagealloc(void)
1555{
1556}
1557#ifdef CONFIG_HIBERNATION 1547#ifdef CONFIG_HIBERNATION
1558static inline bool kernel_page_present(struct page *page) { return true; } 1548static inline bool kernel_page_present(struct page *page) { return true; }
1559#endif /* CONFIG_HIBERNATION */ 1549#endif /* CONFIG_HIBERNATION */