Re: [PATCH v3 06/16] mm/rmap: remove do_page_add_anon_rmap()

From: Vlastimil Babka
Date: Tue Apr 12 2022 - 05:37:22 EST


On 3/29/22 18:04, David Hildenbrand wrote:
> ... and instead convert page_add_anon_rmap() to accept flags.
>
> Passing flags instead of bools is usually nicer either way, and we want
> to more often also pass RMAP_EXCLUSIVE in follow up patches when
> detecting that an anonymous page is exclusive: for example, when
> restoring an anonymous page from a writable migration entry.
>
> This is a preparation for marking an anonymous page inside
> page_add_anon_rmap() as exclusive when RMAP_EXCLUSIVE is passed.
>
> Signed-off-by: David Hildenbrand <david@xxxxxxxxxx>

Acked-by: Vlastimil Babka <vbabka@xxxxxxx>