Re: [PATCH] mm/userfaultfd: fix hugetlb fault mutex hash calculation
From: 周建辉
Date: Sat Mar 07 2026 - 08:38:11 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!