Re: [PATCH] mm/userfaultfd: fix hugetlb fault mutex hash calculation

From: Jianhui Zhou

Date: Sat Mar 07 2026 - 09:00:20 EST


On Thu, Mar 06, 2026 at 04:53:00PM +0000, Peter Xu wrote:
> IIUC we don't need this; the userfaultfd.c reference should only happen
> when CONFIG_HUGETLB_PAGE. Please double check.

You are right. mfill_atomic_hugetlb() is guarded by
#ifdef CONFIG_HUGETLB_PAGE in mm/userfaultfd.c, so the stub under
!CONFIG_HUGETLB_PAGE is not needed. I will remove it in v2.

Thanks for the review!