aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2015-05-14 01:01:39 +0000
committerJohannes Weiner <hannes@cmpxchg.org>2015-05-14 01:01:39 +0000
commit49238adda5e69a7bf516329f8020a6be20fcf0b6 (patch)
tree46edb73b676fe6f2a43b578c92e96798e9ab97fe
parentafd53f14cd60cc3cb73a138237baeea6982e484f (diff)
downloadmm-next-49238adda5e69a7bf516329f8020a6be20fcf0b6.tar.gz
mm-memory-failure-introduce-get_hwpoison_page-for-consistent-refcount-handling-fix
fix CONFIG_HWPOISON_INJECT=m Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--mm/memory-failure.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index 027b3841b0a02..4367b8ca61ac1 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -889,7 +889,7 @@ static int page_action(struct page_state *ps, struct page *p,
* Get refcount for memory error handling:
* - @page: raw page
*/
-inline int get_hwpoison_page(struct page *page)
+int get_hwpoison_page(struct page *page)
{
struct page *head = compound_head(page);
@@ -906,6 +906,7 @@ inline int get_hwpoison_page(struct page *page)
else
return get_page_unless_zero(page);
}
+EXPORT_SYMBOL_GPL(get_hwpoison_page);
/*
* Do all that is necessary to remove user space mappings. Unmap