Re: [PATCH v4 1/3] mm: add get_and_clear_ptes() and clear_ptes()

From: Barry Song
Date: Thu Jul 24 2025 - 05:41:16 EST


On Thu, Jul 24, 2025 at 1:23 PM Dev Jain <dev.jain@xxxxxxx> 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>

Reviewed-by: Barry Song <baohua@xxxxxxxxxx>

Thanks
Barry