Re: [PATCH v3] mm/page_alloc: simplify lowmem_reserve max calculation
From: Wei Yang
Date: Fri Aug 15 2025 - 02:43:44 EST
On Fri, Aug 15, 2025 at 10:45:09AM +0800, Ye Liu wrote:
>From: Ye Liu <liuye@xxxxxxxxxx>
>
>Use max() to find the maximum lowmem_reserve value and min_t() to
>cap it to managed_pages in calculate_totalreserve_pages(), instead
>of open-coding the comparisons. No functional change.
>
>Signed-off-by: Ye Liu <liuye@xxxxxxxxxx>
>Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>
>Acked-by: Zi Yan <ziy@xxxxxxxxxx>
Reviewed-by: Wei Yang <richard.weiyang@xxxxxxxxx>
--
Wei Yang
Help you, Help me