summaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>2010-05-28 09:29:22 +0900
committerAndi Kleen <ak@linux.intel.com>2010-08-11 09:23:11 +0200
commit43131e141abdb44c487cf79af3ef1fe5164dcef9 (patch)
tree374312457143abd52f1c4b0dbada363f5a69ba55 /mm/hugetlb.c
parentfd6a03edd271cf2d69a61aa8df98dd05fa6b9afd (diff)
downloadop-kernel-dev-43131e141abdb44c487cf79af3ef1fe5164dcef9.zip
op-kernel-dev-43131e141abdb44c487cf79af3ef1fe5164dcef9.tar.gz
HWPOISON, hugetlb: support hwpoison injection for hugepage
This patch enables hwpoison injection through debug/hwpoison interfaces, with which we can test memory error handling for free or reserved hugepages (which cannot be tested by madvise() injector). [AK: Export PageHuge too for the injection module] Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Cc: Andrew Morton <akpm@linux-foundation.org> Acked-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 4c2efc0f..3c275ff 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -615,6 +615,8 @@ int PageHuge(struct page *page)
return dtor == free_huge_page;
}
+EXPORT_SYMBOL_GPL(PageHuge);
+
static struct page *alloc_fresh_huge_page_node(struct hstate *h, int nid)
{
struct page *page;
OpenPOWER on IntegriCloud