[PATCH v2 0/3] mm: cleanup clear_not_present_full_ptes()
From: David Hildenbrand (Arm)
Date: Mon Jun 29 2026 - 09:55:41 EST
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) <david@xxxxxxxxxx>
---
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@xxxxxxxxxx
---
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