[PATCH 0/3] mm: cleanup clear_not_present_full_ptes()

From: David Hildenbrand (Arm)

Date: Thu Jun 11 2026 - 07:51:24 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>
---
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 | 31 +++++--------------------------
mm/madvise.c | 6 +++---
mm/memory.c | 2 +-
4 files changed, 9 insertions(+), 34 deletions(-)

---

base-commit: be18cf77e1e749c6469ff44df00eb026f7c0a365

change-id: 20260610-clear_not_present_full_ptes-df3258baf7ed

--

Cheers,

David