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>
This commit is contained in:
parent
c3114a84f7
commit
d4a3a60b37
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue