Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwpoison: rename CONFIG

CONFIG_HUGETLBFS controls hugetlbfs interface code.
OTOH, CONFIG_HUGETLB_PAGE controls hugepage management code.
So we should use CONFIG_HUGETLB_PAGE here.

Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>

authored by

Naoya Horiguchi and committed by
Andi Kleen
e3390f67 43131e14

+4 -4
+2 -2
include/linux/hugetlb_inline.h
··· 1 1 #ifndef _LINUX_HUGETLB_INLINE_H 2 - #define _LINUX_HUGETLB_INLINE_H 1 2 + #define _LINUX_HUGETLB_INLINE_H 3 3 4 - #ifdef CONFIG_HUGETLBFS 4 + #ifdef CONFIG_HUGETLB_PAGE 5 5 6 6 #include <linux/mm.h> 7 7
+2 -2
mm/rmap.c
··· 1462 1462 } 1463 1463 #endif /* CONFIG_MIGRATION */ 1464 1464 1465 - #ifdef CONFIG_HUGETLBFS 1465 + #ifdef CONFIG_HUGETLB_PAGE 1466 1466 /* 1467 1467 * The following three functions are for anonymous (private mapped) hugepages. 1468 1468 * Unlike common anonymous pages, anonymous hugepages have no accounting code ··· 1503 1503 atomic_set(&page->_mapcount, 0); 1504 1504 __hugepage_set_anon_rmap(page, vma, address, 1); 1505 1505 } 1506 - #endif /* CONFIG_HUGETLBFS */ 1506 + #endif /* CONFIG_HUGETLB_PAGE */