summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>2017-07-11 00:47:44 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-07-11 01:32:30 +0200
commitd4a3a60b37bf4609f9b17961a0db2f6e7ec746cd (patch)
treeb94aa10e237dec9b676b00a3f02dc4d2f5865910 /mm
parentmm: hugetlb: soft-offline: dissolve source hugepage after successful migration (diff)
downloadlinux-d4a3a60b37bf4609f9b17961a0db2f6e7ec746cd.tar.xz
linux-d4a3a60b37bf4609f9b17961a0db2f6e7ec746cd.zip
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/1496305019-5493-6-git-send-email-n-horiguchi@ah.jp.nec.com Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-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);
}
}