From f46501f4e126af22c1f95406ed61cfb0ec767abd Mon Sep 17 00:00:00 2001 From: "Kirill A. Shutemov" Date: Thu, 29 Nov 2012 14:17:34 +1100 Subject: [PATCH] thp-huge-zero-page-basic-preparation-v6 Huge zero page (hzp) is a non-movable huge page (2M on x86-64) filled with zeros. For now let's allocate the page on hugepage_init(). We'll switch to lazy allocation later. We are not going to map the huge zero page until we can handle it properly on all code paths. is_huge_zero_{pfn,pmd}() functions will be used by following patches to check whether the pfn/pmd is huge zero page. Signed-off-by: Kirill A. Shutemov Acked-by: David Rientjes Cc: Andrea Arcangeli Cc: Andi Kleen Cc: "H. Peter Anvin" Cc: Mel Gorman Signed-off-by: Andrew Morton --- mm/huge_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 2bef4e403fac..b544f12728be 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -161,7 +161,7 @@ static int start_khugepaged(void) return err; } -static int init_huge_zero_page(void) +static int __init init_huge_zero_page(void) { struct page *hpage; -- 2.39.5