]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
mm: soft-offline: dissolve free hugepage if soft-offlined
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Mon, 10 Jul 2017 22:47:44 +0000 (15:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 10 Jul 2017 23:32:30 +0000 (16:32 -0700)
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>
mm/memory-failure.c

index 42c5803e62758a3b3032866b5018f21fedc52a00..8a7b39486b9d06451fd679cf1b1bdf1cf4f6119a 100644 (file)
@@ -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);
        }
 }