Re: [PATCH v4 1/3] mm: add get_and_clear_ptes() and clear_ptes()
From: Zi Yan
Date: Tue Jul 29 2025 - 10:30:32 EST
On 24 Jul 2025, at 1:22, Dev Jain wrote:
> From: David Hildenbrand <david@xxxxxxxxxx>
>
> Let's add variants to be used where "full" does not apply -- which will
> be the majority of cases in the future. "full" really only applies if
> we are about to tear down a full MM.
>
> Use get_and_clear_ptes() in existing code, clear_ptes() users will
> be added next.
>
> Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
> Signed-off-by: David Hildenbrand <david@xxxxxxxxxx>
> Signed-off-by: Dev Jain <dev.jain@xxxxxxx>
> ---
> arch/arm64/mm/mmu.c | 2 +-
> include/linux/pgtable.h | 45 +++++++++++++++++++++++++++++++++++++++++
> mm/mremap.c | 2 +-
> mm/rmap.c | 2 +-
> 4 files changed, 48 insertions(+), 3 deletions(-)
>
Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>
Best Regards,
Yan, Zi