Skip to content

Commit

Permalink
mm-memory-failure-introduce-get_hwpoison_page-for-consistent-refcount…
Browse files Browse the repository at this point in the history
…-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>
  • Loading branch information
akpm00 authored and sfrothwell committed May 14, 2015
1 parent 424a086 commit 1d7b747
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mm/memory-failure.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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
Expand Down

0 comments on commit 1d7b747

Please sign in to comment.