The patch titled Subject: mm: compaction: avoid fragmentation score calculation for empty zones has been added to the -mm mm-unstable branch. Its filename is mm-compaction-avoid-fragmentation-score-calculation-for-empty-zones.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-compaction-avoid-fragmentation-score-calculation-for-empty-zones.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: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx> Subject: mm: compaction: avoid fragmentation score calculation for empty zones Date: Tue, 10 Jan 2023 21:36:22 +0800 There is no need to calculate the fragmentation score for empty zones. Link: https://lkml.kernel.org/r/100331ad9d274a9725e687b00d85d75d7e4a17c7.1673342761.git.baolin.wang@xxxxxxxxxxxxxxxxx Signed-off-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/compaction.c | 2 ++ 1 file changed, 2 insertions(+) --- a/mm/compaction.c~mm-compaction-avoid-fragmentation-score-calculation-for-empty-zones +++ a/mm/compaction.c @@ -2025,6 +2025,8 @@ static unsigned int fragmentation_score_ struct zone *zone; zone = &pgdat->node_zones[zoneid]; + if (!populated_zone(zone)) + continue; score += fragmentation_score_zone_weighted(zone); } _ Patches currently in -mm which might be from baolin.wang@xxxxxxxxxxxxxxxxx are mm-compaction-remove-redundant-vm_bug_on-in-compact_zone.patch mm-compaction-move-list-validation-into-compact_zone.patch mm-compaction-count-the-migration-scanned-pages-events-for-proactive-compaction.patch mm-compaction-add-missing-kcompactd-wakeup-trace-event.patch mm-compaction-avoid-fragmentation-score-calculation-for-empty-zones.patch