Re: [PATCH 03/14] mm: rename uffd-wp PTE accessors to uffd

Mike Rapoport
2026-05-04T07:59:46Z

On Mon, Apr 27, 2026 at 12:45:51PM +0100, Kiryl Shutsemau (Meta) wrote:
> Userfaultfd RWP will reuse the uffd-wp PTE bit to mark access-tracking
> PTEs, alongside the write-protected ones it already marks. The bit's
> meaning now depends on the VMA flag (WP or RWP), not on its name.
>
> Rename the kernel-internal names that describe the bit:
>
> - pte/pmd/huge_pte accessors (and swap variants)
> - pgtable_supports_uffd() capability query
> - SCAN_PTE_UFFD khugepaged enum
>
> The ftrace string emitted by mm_khugepaged_scan_pmd for this enum is
> kept as "pte_uffd_wp" so existing trace-based tooling keeps matching.
>
> Pure mechanical rename -- no behavior change.
>
> Signed-off-by: Kiryl Shutsemau <kas@kernel.org>
> Assisted-by: Claude:claude-opus-4-6

Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>

--
Sincerely yours,
Mike.