Re: [PATCH 02/10] mm: page_alloc: optimize free_unref_folios()

From: Vlastimil Babka
Date: Mon Mar 25 2024 - 13:17:09 EST


On 3/20/24 7:02 PM, Johannes Weiner wrote:
> Move direct freeing of isolated pages to the lock-breaking block in
> the second loop. This saves an unnecessary migratetype reassessment.
>
> Minor comment and local variable scoping cleanups.
>
> Suggested-by: Vlastimil Babka <vbabka@xxxxxxx>
> Tested-by: "Huang, Ying" <ying.huang@xxxxxxxxx>
> Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx>

Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx>