Re: [PATCH v2 2/3] mm: drop pte_clear_not_present_full()
From: Lance Yang
Date: Tue Jun 30 2026 - 08:40:48 EST
On Mon, Jun 29, 2026 at 03:49:48PM +0200, David Hildenbrand (Arm) wrote:
>In general, there is no good reason to do anything special when clearing
>non-present PTEs.
>
>In theory, HW that does have to invalidate TLBs for non-present PTEs could
>benefit from a "full" parameter, but fortunately
>pte_clear_not_present_full() is not wired up anymore ... and there would
>have to be something very convincing for us to care about that to re-add
>it.
>
>So, let's just use pte_clear() directly now. To avoid the compiler
>complaining on some configs about unused "addr" parameter, silence that
>here.
>
>Reviewed-by: Oscar Salvador (SUSE) <osalvador@xxxxxxxxxx>
>Signed-off-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
>---
With the sparc64 override gone, pte_clear_not_present_full() is just
pte_clear() :)
LGTM. Feel free to add:
Reviewed-by: Lance Yang <lance.yang@xxxxxxxxx>