Re: [PATCH v3 03/16] mm/memory: slightly simplify copy_present_pte()

From: Vlastimil Babka
Date: Mon Apr 11 2022 - 12:38:29 EST


On 3/29/22 18:04, David Hildenbrand wrote:
> Let's move the pinning check into the caller, to simplify return code
> logic and prepare for further changes: relocating the
> page_needs_cow_for_dma() into rmap handling code.
>
> While at it, remove the unused pte parameter and simplify the comments a
> bit.
>
> No functional change intended.
>
> Signed-off-by: David Hildenbrand <david@xxxxxxxxxx>

Yeah, much better.

Acked-by: Vlastimil Babka <vbabka@xxxxxxx>