Skip to contentSkip to conversation

mm-compaction-check-if-a-page-has-been-captured-before-draining-pcp-pages.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: check if a page has been captured before draining PCP pages
has been removed from the -mm tree. Its filename was
mm-compaction-check-if-a-page-has-been-captured-before-draining-pcp-pages.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: check if a page has been captured before draining PCP pages
Date: Wed, 25 Jan 2023 13:44:32 +0000

If a page has been captured then draining is unnecssary so check first for a captured page.

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-check-if-a-page-has-been-captured-before-draining-pcp-pages +6 -6
@@ -2439,6 +2439,12 @@ compact_zone(struct compact_control *cc,
 			}
 		}
 
+		/* Stop if a page has been captured */
+		if (capc && capc->page) {
+			ret = COMPACT_SUCCESS;
+			break;
+		}
+
 check_drain:
 		/*
 		 * Has the migration scanner moved away from the previous
@@ -2457,12 +2463,6 @@ check_drain:
 				last_migrated_pfn = 0;
 			}
 		}
-
-		/* Stop if a page has been captured */
-		if (capc && capc->page) {
-			ret = COMPACT_SUCCESS;
-			break;
-		}
 	}
 
 out:

_

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