aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaoya Horiguchi <[email protected]>2017-07-10 15:47:44 -0700
committerLinus Torvalds <[email protected]>2017-07-10 16:32:30 -0700
commitd4a3a60b37bf4609f9b17961a0db2f6e7ec746cd (patch)
treeb94aa10e237dec9b676b00a3f02dc4d2f5865910
parentc3114a84f7f96c9d5c73c8bfa7e21ff42fda97e2 (diff)
mm: soft-offline: dissolve free hugepage if soft-offlined
Now we have code to rescue most of healthy pages from a hwpoisoned hugepage. So let's apply it to soft_offline_free_page too. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Naoya Horiguchi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/memory-failure.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index 42c5803e6275..8a7b39486b9d 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -1697,7 +1697,7 @@ static void soft_offline_free_page(struct page *page)
if (!TestSetPageHWPoison(head)) {
num_poisoned_pages_inc();
if (PageHuge(head))
- dequeue_hwpoisoned_huge_page(head);
+ dissolve_free_huge_page(page);
}
}