As suggested by David Rientjes, we should also change free_init_pages. Can be merged with "x86: query dynamic DEBUG_PAGEALLOC setting" or go as addon patch.
Christian Borntraeger (1): x86: also use debug_pagealloc_enabled() for free_init_pages arch/x86/mm/init.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) -- 2.3.0