Re: [PATCH v2 2/2] mm/memory-failure.c: dissolve truncated hugetlb page
From: HORIGUCHI NAOYA(堀口 直也)
Date: Thu Apr 14 2022 - 21:19:04 EST
On Thu, Apr 14, 2022 at 07:49:41PM +0800, Miaohe Lin wrote:
> If me_huge_page meets a truncated but not yet freed hugepage, it won't be
> dissolved even if we hold the last refcnt. It's because the hugepage has
> NULL page_mapping while it's not anonymous hugepage too. Thus we lose the
> last chance to dissolve it into buddy to save healthy subpages. Remove
> PageAnon check to handle these hugepages too.
>
> Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>
Thank you for the update.
Acked-by: Naoya Horiguchi <naoya.horiguchi@xxxxxxx>