Re: [PATCH 0/2] userfaultfd: merge fs/userfaultfd.c into mm/userfaultfd.c

From: David Hildenbrand (Arm)

Date: Sat May 02 2026 - 02:38:06 EST


On 5/2/26 06:38, Mike Rapoport wrote:
> On Fri, May 01, 2026 at 08:33:04PM +0200, David Hildenbrand (Arm) wrote:
>> On 4/30/26 16:56, Mike Rapoport wrote:
>>>
>>> But it's in mm already.
>>
>> $ grep HUGETLB fs/Kconfig
>> config ARCH_SUPPORTS_HUGETLBFS
>> menuconfig HUGETLBFS
>> depends on ARCH_SUPPORTS_HUGETLBFS
>> if HUGETLBFS
>> config HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON
>> depends on HUGETLB_PAGE_OPTIMIZE_VMEMMAP
>> endif # HUGETLBFS
>> config HUGETLB_PAGE
>> def_bool HUGETLBFS
>> config HUGETLB_PAGE_OPTIMIZE_VMEMMAP
>> def_bool HUGETLB_PAGE
>> depends on ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP
>> select SPARSEMEM_VMEMMAP_PREINIT if ARCH_WANT_HUGETLB_VMEMMAP_PREINIT
>> config HUGETLB_PMD_PAGE_TABLE_SHARING
>> def_bool HUGETLB_PAGE
>>
>
> $ grep -c USERFAULT fs/Kconfig
> 0
>
> HugeTLB is another story.

Oh my, what did my brain mess up there.

Sorry, please move along, nothing to see here :)

--
Cheers,

David