Re: [PATCH v3] mm/page_alloc: only update lowmem_reserve_ratio on sysctl write
From: Jianlin Shi
Date: Sun Aug 02 2026 - 10:35:39 EST
On Sat, 1 Aug 2026 11:44:34 -0700 Andrew Morton wrote:
> Not sure what to do here. Perhaps pass proc_dointvec_minmax() a
> temporary then copy that into sysctl_lowmem_reserve_ratio if all
> proc_dointvec_minmax() returns "OK".
Hi Andrew,
Thanks for the suggestion. v4 uses a temporary ratio[] on write and
only copies into sysctl_lowmem_reserve_ratio[] and calls
setup_per_zone_lowmem_reserve() after the full parse succeeds.
I'll send [PATCH v4] in a separate mail shortly.
Thanks,
Jianlin