The patch titled Subject: mm: compaction: push watermark into compaction_suitable() callers fix has been added to the -mm mm-unstable branch. Its filename is mm-compaction-push-watermark-into-compaction_suitable-callers-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-compaction-push-watermark-into-compaction_suitable-callers-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 the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Hugh Dickins <hughd@xxxxxxxxxx> Subject: mm: compaction: push watermark into compaction_suitable() callers fix Date: Sat, 15 Mar 2025 21:28:16 -0700 (PDT) Stop oops on out-of-range highest_zoneidx: compaction_suitable() pass args to __compaction_suitable() in the order which it is expecting. Link: https://lkml.kernel.org/r/005ace8b-07fa-01d4-b54b-394a3e029c07@xxxxxxxxxx Signed-off-by: Hugh Dickins <hughd@xxxxxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Cc: Zi Yan <ziy@xxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/compaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/compaction.c~mm-compaction-push-watermark-into-compaction_suitable-callers-fix +++ a/mm/compaction.c @@ -2417,7 +2417,7 @@ bool compaction_suitable(struct zone *zo enum compact_result compact_result; bool suitable; - suitable = __compaction_suitable(zone, order, highest_zoneidx, watermark, + suitable = __compaction_suitable(zone, order, watermark, highest_zoneidx, zone_page_state(zone, NR_FREE_PAGES)); /* * fragmentation index determines if allocation failures are due to _ Patches currently in -mm which might be from hughd@xxxxxxxxxx are mm-compaction-push-watermark-into-compaction_suitable-callers-fix.patch