Re: [PATCH v3 01/15] mm,hwpoison: cleanup unused PageHuge() check

From: Mike Kravetz
Date: Tue Jun 30 2020 - 19:30:37 EST


On 6/24/20 8:01 AM, nao.horiguchi@xxxxxxxxx wrote:
> From: Naoya Horiguchi <naoya.horiguchi@xxxxxxx>
>
> Drop the PageHuge check, which is dead code since memory_failure() forks
> into memory_failure_hugetlb() for hugetlb pages.
>
> memory_failure() and memory_failure_hugetlb() shares some functions like
> hwpoison_user_mappings() and identify_page_state(), so they should properly
> handle 4kB page, thp, and hugetlb.
>
> Signed-off-by: Naoya Horiguchi <naoya.horiguchi@xxxxxxx>
> Signed-off-by: Oscar Salvador <osalvador@xxxxxxx>

Reviewed-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
--
Mike Kravetz