On 6/24/20 8:01 AM, nao.horigu...@gmail.com wrote: > From: Naoya Horiguchi <naoya.horigu...@nec.com> > > 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.horigu...@nec.com> > Signed-off-by: Oscar Salvador <osalva...@suse.de>
Reviewed-by: Mike Kravetz <mike.krav...@oracle.com> -- Mike Kravetz