linux/arch/x86
Kiryl Shutsemau (Meta) c0ffe79eed mm: rename uffd-wp PTE accessors to uffd
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.

Link: https://lore.kernel.org/20260708111417.173443-4-kirill@shutemov.name
Signed-off-by: Kiryl Shutsemau <kas@kernel.org>
Assisted-by: Claude:claude-opus-4-6
Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: David Hildenbrand <david@kernel.org>
Cc: James Houghton <jthoughton@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Liam Howlett <liam@infradead.org>
Cc: Lorenzo Stoakes <ljs@kernel.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@kernel.org>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2026-08-04 19:18:36 -07:00
..
boot x86/boot/compressed: Disable jump tables 2026-07-23 10:06:58 +02:00
coco - Remove redundant GHCB initialization guards in the SEV page state and SVSM 2026-06-16 05:57:30 +05:30
configs x86/64/defconfig: Add CONFIG_IRQ_REMAP 2026-03-10 19:01:37 +01:00
crypto This update includes the following changes: 2026-04-15 15:22:26 -07:00
entry - Remove redundant GHCB initialization guards in the SEV page state and SVSM 2026-06-16 05:57:30 +05:30
events perf/x86/intel: use higher-level allocator API 2026-07-30 19:40:42 -07:00
hyperv hyperv-next for v7.2-rc1 2026-06-22 08:06:13 -07:00
ia32
include mm: rename uffd-wp PTE accessors to uffd 2026-08-04 19:18:36 -07:00
kernel x86/cpu: Remove Makefile rule for removed UMC CPU support 2026-07-11 18:07:30 -07:00
kvm KVM: VMX: use higher-level allocator API 2026-07-30 19:40:42 -07:00
lib x86: Remove arch-specific strncpy() implementation 2026-06-18 16:37:13 -07:00
mm mm.git review status for mm-hotfixes-stable..mm-stable 2026-06-19 10:14:34 -07:00
net bpf: Restrict JIT predictor flush to cBPF 2026-07-01 10:33:38 +02:00
pci treewide: Explicitly include the x86 CPUID headers 2026-05-06 14:29:59 +02:00
platform gpio fixes for v7.2-rc1 2026-06-25 09:33:23 -07:00
power PM: hibernate: x86: Remove inclusion of crypto/hash.h 2026-03-19 16:13:32 +01:00
purgatory kcfi: Rename CONFIG_CFI_CLANG to CONFIG_CFI 2025-09-24 14:29:14 -07:00
ras
realmode x86/realmode: Make the location of the trampoline configurable 2026-05-28 20:01:25 +00:00
tools x86/vdso: Prepare for robust futex unlock support 2026-06-03 11:38:52 +02:00
um Mostly cleanups and small things, notably: 2026-04-20 16:36:46 -07:00
video x86/video: Only fall back to vga_default_device() without screen info 2026-07-07 08:14:55 -07:00
virt x86/virt: use higher-level allocator API 2026-07-30 19:40:42 -07:00
xen x86/Xen: correct commentary and parameter naming of xen_exchange_memory() 2026-07-02 08:14:47 +02:00
.gitignore
Kbuild x86/kbuild: Incorporate boot/startup/ via Kbuild makefile 2025-09-03 17:59:59 +02:00
Kconfig mm: decouple protnone helpers from CONFIG_NUMA_BALANCING 2026-08-04 19:18:36 -07:00
Kconfig.assembler x86/kconfig: Remove CONFIG_AS_AVX512 2025-08-21 14:35:01 +02:00
Kconfig.cpu - The usual pile of cleanups and fixlets the cat dragged in 2026-06-16 05:41:22 +05:30
Kconfig.cpufeatures x86/cpu: Make CONFIG_X86_CX8 unconditional 2026-06-11 10:25:40 +02:00
Kconfig.debug mm: rename GENERIC_PTDUMP and PTDUMP_CORE 2025-03-17 00:05:32 -07:00
Makefile x86/cpu updates for v7.2: 2026-06-15 15:25:17 +05:30
Makefile_32.cpu x86/cpu, cpufreq: Remove AMD ELAN support 2026-05-08 07:34:03 +02:00
Makefile.um rust: kasan/kbuild: fix rustc-option when cross-compiling 2026-05-26 09:44:54 +02:00