Re: [PATCH] mm/page_alloc: simplify lowmem_reserve max calculation
From: Ye Liu
Date: Thu Aug 14 2025 - 22:09:29 EST
在 2025/8/14 22:07, Johannes Weiner 写道:
> 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.
I agree to delete it, but I noticed a patch has been added to the -mm
mm-new branch by Andrew Morton[1]. What should I do now? Send v2 ?
Or send a new patch? If this is my first time, please feel free to give me some advice.
[1]:https://lore.kernel.org/all/20250815004917.03FD7C4CEED@xxxxxxxxxxxxxxx/
>
> Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>
--
Thanks,
Ye Liu