diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index fe4378fc0ab6..36a0a792f4f8 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -478,7 +478,8 @@ void prep_compound_page(struct page *page, unsigned int order) | |||
478 | 478 | ||
479 | #ifdef CONFIG_DEBUG_PAGEALLOC | 479 | #ifdef CONFIG_DEBUG_PAGEALLOC |
480 | unsigned int _debug_guardpage_minorder; | 480 | unsigned int _debug_guardpage_minorder; |
481 | bool _debug_pagealloc_enabled __read_mostly; | 481 | bool _debug_pagealloc_enabled __read_mostly |
482 | = IS_ENABLED(CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT); | ||
482 | bool _debug_guardpage_enabled __read_mostly; | 483 | bool _debug_guardpage_enabled __read_mostly; |
483 | 484 | ||
484 | static int __init early_debug_pagealloc(char *buf) | 485 | static int __init early_debug_pagealloc(char *buf) |
@@ -489,6 +490,9 @@ static int __init early_debug_pagealloc(char *buf) | |||
489 | if (strcmp(buf, "on") == 0) | 490 | if (strcmp(buf, "on") == 0) |
490 | _debug_pagealloc_enabled = true; | 491 | _debug_pagealloc_enabled = true; |
491 | 492 | ||
493 | if (strcmp(buf, "off") == 0) | ||
494 | _debug_pagealloc_enabled = false; | ||
495 | |||
492 | return 0; | 496 | return 0; |
493 | } | 497 | } |
494 | early_param("debug_pagealloc", early_debug_pagealloc); | 498 | early_param("debug_pagealloc", early_debug_pagealloc); |