From: Naoya Horiguchi Date: Mon, 10 Jul 2017 22:47:44 +0000 (-0700) Subject: mm: soft-offline: dissolve free hugepage if soft-offlined X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d4a3a60b37bf4609f9b17961a0db2f6e7ec746cd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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); } }