Skip to contentSkip to conversation

mm-compaction-finish-scanning-the-current-pageblock-if-requested.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Feb 3, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm, compaction: finish scanning the current pageblock if requested
has been removed from the -mm tree. Its filename was
mm-compaction-finish-scanning-the-current-pageblock-if-requested.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Mel Gorman <[email protected]>
Subject: mm, compaction: finish scanning the current pageblock if requested
Date: Wed, 25 Jan 2023 13:44:33 +0000

cc->finish_pageblock is set when the current pageblock should be rescanned but fast_find_migrateblock can select an alternative block. Disable fast_find_migrateblock when the current pageblock scan should be completed.

Cc Chuyi Zhou <[email protected]>
Cc Jiri Slaby <[email protected]>
Cc Maxim Levitsky <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Pedro Falcato <[email protected]>
Cc Vlastimil Babka <[email protected]>

---

mm/compaction.c renamed from mm/compaction.c~mm-compaction-finish-scanning-the-current-pageblock-if-requested +7 -0
@@ -1762,6 +1762,13 @@ static unsigned long fast_find_migratebl
 		return pfn;
 
 	/*
+	 * If the pageblock should be finished then do not select a different
+	 * pageblock.
+	 */
+	if (cc->finish_pageblock)
+		return pfn;
+
+	/*
 	 * If the migrate_pfn is not at the start of a zone or the start
 	 * of a pageblock then assume this is a continuation of a previous
 	 * scan restarted due to COMPACT_CLUSTER_MAX.

_

Patches currently in -mm which might be from [email protected] are