[PATCH v2 0/3] mm: cleanup clear_not_present_full_ptes()
"David Hildenbrand (Arm)" <[email protected]> Mon, 29 Jun 2026 15:49:46 +0200
| Newsgroups | org.kernel.vger.sparclinux,org.kernel.vger.linux-kernel,org.kvack.linux-mm |
|---|---|
| Message-ID | <20260629-clear_not_present_full_ptes-v2-0-96089871a1e7@kernel.org> |
While doing some review, I stumbled over clear_not_present_full_ptes() and concluded that it needs some love. Let's remove pte_clear_not_present_full() and cleanup clear_not_present_full_ptes(), renaming it to clear_non_present_ptes(). Heavily build-tested, runtime tested only on x86-64. Signed-off-by: David Hildenbrand (Arm) <[email protected]> --- Changes in v2: - Silence warning in patch #2 with architectures that don't use addr in their pte_clear() macro by using "(void)addr" - Refine patch descriptions. - Link to v1: https://lore.kernel.org/r/20260611-clear_not_present_full_ptes-v1-0-49865fc82629@kernel.org --- David Hildenbrand (Arm) (3): sparc/mm: drop custom pte_clear_not_present_full() mm: drop pte_clear_not_present_full() mm: cleanup clear_not_present_full_ptes() and rename to clear_non_present_ptes() arch/sparc/include/asm/pgtable_64.h | 4 ---- include/linux/pgtable.h | 33 +++++++-------------------------- mm/madvise.c | 6 +++--- mm/memory.c | 2 +- 4 files changed, 11 insertions(+), 34 deletions(-) --- base-commit: fe61612214b618072b4ea3f5065a81296df6dd75 change-id: 20260610-clear_not_present_full_ptes-df3258baf7ed -- Cheers, David