On 6/24/20 8:01 AM, [email protected] wrote: > From: Naoya Horiguchi <[email protected]> > > 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 <[email protected]> > Signed-off-by: Oscar Salvador <[email protected]>
Reviewed-by: Mike Kravetz <[email protected]> -- Mike Kravetz

