提交 e3390f67 编写于 作者: N Naoya Horiguchi 提交者: Andi Kleen

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: NNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: NAndi Kleen <ak@linux.intel.com>
上级 43131e14
#ifndef _LINUX_HUGETLB_INLINE_H #ifndef _LINUX_HUGETLB_INLINE_H
#define _LINUX_HUGETLB_INLINE_H 1 #define _LINUX_HUGETLB_INLINE_H
#ifdef CONFIG_HUGETLBFS #ifdef CONFIG_HUGETLB_PAGE
#include <linux/mm.h> #include <linux/mm.h>
......
...@@ -1462,7 +1462,7 @@ int rmap_walk(struct page *page, int (*rmap_one)(struct page *, ...@@ -1462,7 +1462,7 @@ int rmap_walk(struct page *page, int (*rmap_one)(struct page *,
} }
#endif /* CONFIG_MIGRATION */ #endif /* CONFIG_MIGRATION */
#ifdef CONFIG_HUGETLBFS #ifdef CONFIG_HUGETLB_PAGE
/* /*
* The following three functions are for anonymous (private mapped) hugepages. * The following three functions are for anonymous (private mapped) hugepages.
* Unlike common anonymous pages, anonymous hugepages have no accounting code * Unlike common anonymous pages, anonymous hugepages have no accounting code
...@@ -1503,4 +1503,4 @@ void hugepage_add_new_anon_rmap(struct page *page, ...@@ -1503,4 +1503,4 @@ void hugepage_add_new_anon_rmap(struct page *page,
atomic_set(&page->_mapcount, 0); atomic_set(&page->_mapcount, 0);
__hugepage_set_anon_rmap(page, vma, address, 1); __hugepage_set_anon_rmap(page, vma, address, 1);
} }
#endif /* CONFIG_HUGETLBFS */ #endif /* CONFIG_HUGETLB_PAGE */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册