Re: [PATCH] mm/page_alloc: simplify lowmem_reserve max calculation

From: Johannes Weiner
Date: Thu Aug 14 2025 - 10:20:40 EST


On Thu, Aug 14, 2025 at 05:00:52PM +0800, Ye Liu wrote:
> From: Ye Liu <liuye@xxxxxxxxxx>
>
> Use max() macro to simplify the calculation of maximum lowmem_reserve
> value in calculate_totalreserve_pages(), instead of open-coding the
> comparison. The functionality remains identical.
>
> Signed-off-by: Ye Liu <liuye@xxxxxxxxxx>

You can remove the {} from the for block as well now.

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>