Re: [PATCH] mm/memory: use folio lock/ref helpers in do_swap_page
From: David Hildenbrand (Arm)
Date: Tue Jul 21 2026 - 06:24:00 EST
On 7/21/26 03:33, Hongfu Li wrote:
> From: Hongfu Li <lihongfu@xxxxxxxxxx>
>
> Replace page-level lock/ref operations with their folio equivalents
> in the device_private migration path of do_swap_page().
>
> Introduce a local fault_folio to hold page_folio(vmf->page) to avoid
> repeated page_folio() invocations.
>
> Signed-off-by: Hongfu Li <lihongfu@xxxxxxxxxx>
> ---
Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
--
Cheers,
David