Skip to contentSkip to conversation

mm-compaction-change-fast_isolate_freepages-to-void-type.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jun 9, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: compaction: change fast_isolate_freepages() to void type
has been removed from the -mm tree. Its filename was
mm-compaction-change-fast_isolate_freepages-to-void-type.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: Baolin Wang <[email protected]>
Subject: mm: compaction: change fast_isolate_freepages() to void type
Date: Thu, 25 May 2023 20:53:57 +0800

No caller cares about the return value of fast_isolate_freepages(), void it.

---

 mm/compaction.c |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
mm/compaction.c renamed from mm/compaction.c~mm-compaction-change-fast_isolate_freepages-to-void-type +3 -5
@@ -1413,8 +1413,7 @@ static int next_search_order(struct comp
 	return order;
 }
 
-static unsigned long
-fast_isolate_freepages(struct compact_control *cc)
+static void fast_isolate_freepages(struct compact_control *cc)
 {
 	unsigned int limit = max(1U, freelist_scan_limit(cc) >> 1);
 	unsigned int nr_scanned = 0;
@@ -1427,7 +1426,7 @@ fast_isolate_freepages(struct compact_co
 
 	/* Full compaction passes in a negative order */
 	if (cc->order <= 0)
-		return cc->free_pfn;
+		return;
 
 	/*
 	 * If starting the scan, use a deeper search and use the highest
@@ -1566,11 +1565,10 @@ fast_isolate_freepages(struct compact_co
 
 	cc->total_free_scanned += nr_scanned;
 	if (!page)
-		return cc->free_pfn;
+		return;
 
 	low_pfn = page_to_pfn(page);
 	fast_isolate_around(cc, low_pfn);
-	return low_pfn;
 }
 
 /*

_

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