Re: [PATCH v3] mm/page_alloc: only update lowmem_reserve_ratio on sysctl write
Jianlin Shi <[email protected]> Sun, 2 Aug 2026 22:31:54 +0800
| Newsgroups | org.kvack.linux-mm,org.kernel.vger.linux-kernel |
|---|---|
| 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