Skip to contentSkip to conversation

mm-page_isolation-do-not-isolate-the-max-order-page.patch removed from -mm tree

merged [email protected] 1 participant 1 message Dec 15, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/page_isolation: do not isolate the max order page
has been removed from the -mm tree. Its filename was
mm-page_isolation-do-not-isolate-the-max-order-page.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Muchun Song <[email protected]>
Subject: mm/page_isolation: do not isolate the max order page

A max order page has no buddy page and never merges to another order. So isolating and then freeing it is pointless.

Fixes 3c605096d315 ("mm/page_alloc: restrict max order of merging on isolated pageblock")
Cc Joonsoo Kim <[email protected]>
Cc Matthew Wilcox <[email protected]>

---

 mm/page_isolation.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page_isolation.c renamed from mm/page_isolation.c~mm-page_isolation-do-not-isolate-the-max-order-page +1 -1
@@ -88,7 +88,7 @@ static void unset_migratetype_isolate(st
 	 */
 	if (PageBuddy(page)) {
 		order = buddy_order(page);
-		if (order >= pageblock_order) {
+		if (order >= pageblock_order && order < MAX_ORDER - 1) {
 			pfn = page_to_pfn(page);
 			buddy_pfn = __find_buddy_pfn(pfn, order);
 			buddy = page + (buddy_pfn - pfn);

_

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