Re: [PATCH v3] mm/page_alloc: only update lowmem_reserve_ratio on sysctl write

Jianlin Shi <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.kernel.mm
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.