+ mm-page_alloc-only-update-lowmem_reserve_ratio-on-sysctl-write-fix.patch added to mm-unstable branch
Andrew Morton <[email protected]> Mon, 03 Aug 2026 17:48:56 -0700
| Newsgroups | org.kernel.vger.mm-commits |
|---|---|
| Message-ID | <[email protected]> |
The patch titled
Subject: mm-page_alloc-only-update-lowmem_reserve_ratio-on-sysctl-write-fix
has been added to the -mm mm-unstable branch. Its filename is
mm-page_alloc-only-update-lowmem_reserve_ratio-on-sysctl-write-fix.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-page_alloc-only-update-lowmem_reserve_ratio-on-sysctl-write-fix.patch
This patch will later appear in the mm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: mm-page_alloc-only-update-lowmem_reserve_ratio-on-sysctl-write-fix
Date: Mon Aug 3 05:44:48 PM PDT 2026
use ARRAY_SIZE to dimension ratio[]
Cc: Brendan Jackman <[email protected]>
Cc: Jianlin Shi <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Zi Yan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---
mm/page_alloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/mm/page_alloc.c~mm-page_alloc-only-update-lowmem_reserve_ratio-on-sysctl-write-fix
+++ a/mm/page_alloc.c
@@ -6926,7 +6926,7 @@ static int lowmem_reserve_ratio_sysctl_h
int write, void *buffer, size_t *length, loff_t *ppos)
{
struct ctl_table tmp = *table;
- int ratio[MAX_NR_ZONES];
+ int ratio[ARRAY_SIZE(sysctl_lowmem_reserve_ratio)];
int rc;
if (!write)
_
Patches currently in -mm which might be from [email protected] are
mm-drop-stale-folio_ref_count==1-check-in-do_swap_page-reuse-logic-fix.patch
mm-hmm-make-config_hmm_mirror-select-config_mmu_notifier.patch
mm-vma-add-and-use-vma__pgoff-fix.patch
alloc_tag-add-ioctl-to-proc-allocinfo-fix.patch
mm-page_alloc-only-update-lowmem_reserve_ratio-on-sysctl-write-fix.patch
drivers-media-v4l2-core-v4l2-vp9c-reduce-inlining.patch