Skip to contentSkip to conversation

mm-fix-a-wrong-flag-in-set_migratetype_isolate.patch removed from -mm tree

merged [email protected] 1 participant 1 message Apr 1, 2019 Stable branch

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/page_isolation.c: fix a wrong flag in set_migratetype_isolate()
has been removed from the -mm tree. Its filename was
mm-fix-a-wrong-flag-in-set_migratetype_isolate.patch

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

------------------------------------------------------
From: Qian Cai <[email protected]>
Subject: mm/page_isolation.c: fix a wrong flag in set_migratetype_isolate()

Due to has_unmovable_pages() taking an incorrect irqsave flag instead of the isolation flag in set_migratetype_isolate(), there are issues with HWPOSION and error reporting where dump_page() is not called when there is an unmovable page.

Fixes d381c54760dc ("mm: only report isolation failures when offlining memory")
Cc <[email protected]> [5.0.x]

---

 mm/page_isolation.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
mm/page_isolation.c renamed from mm/page_isolation.c~mm-fix-a-wrong-flag-in-set_migratetype_isolate +2 -1
@@ -59,7 +59,8 @@ static int set_migratetype_isolate(struc
 	 * FIXME: Now, memory hotplug doesn't call shrink_slab() by itself.
 	 * We just check MOVABLE pages.
 	 */
-	if (!has_unmovable_pages(zone, page, arg.pages_found, migratetype, flags))
+	if (!has_unmovable_pages(zone, page, arg.pages_found, migratetype,
+				 isol_flags))
 		ret = 0;
 
 	/*

_

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

mm-compaction-abort-search-if-isolation-fails-v2.patch mm-compaction-fix-an-undefined-behaviour.patch initramfs-cleanup-populate_rootfs-fix.patch