Skip to contentSkip to conversation

mm-compaction-do-not-compact-pgdat-for-order-0.patch removed from -mm tree

merged [email protected] 1 participant 1 message Sep 12, 2013

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [merged] mm-compaction-do-not-compact-pgdat-for-order-0.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 12 Sep 2013 12:44:37 -0700

The patch titled
Subject: mm: compaction: do not compact pgdat for order-0
has been removed from the -mm tree. Its filename was
mm-compaction-do-not-compact-pgdat-for-order-0.patch

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

------------------------------------------------------
From: Mel Gorman <[email protected]>
Subject: mm: compaction: do not compact pgdat for order-0

If kswapd was reclaiming for a high order and resets it to 0 due to fragmentation it will still call compact_pgdat. For the most part, this will fail a compaction_suitable() test and not compact but it is unnecessarily sloppy. It could be fixed in the caller but fix it in the API instead.

[[email protected]: pointed out that it was a potential problem]
Cc Hillf Danton <[email protected]>

---

 mm/compaction.c |    3 +++
 1 file changed, 3 insertions(+)
mm/compaction.c renamed from mm/compaction.c~mm-compaction-do-not-compact-pgdat-for-order-0 +3 -0
diff -puN mm/compaction.c~mm-compaction-do-not-compact-pgdat-for-order-0 mm/compaction.c
@@ -1131,6 +1131,9 @@ void compact_pgdat(pg_data_t *pgdat, int
 		.sync = false,
 	};
 
+	if (!order)
+		return;
+
 	__compact_pgdat(pgdat, &cc);
 }
 

_

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

origin.patch thp-account-anon-transparent-huge-pages-into-nr_anon_pages.patch thp-account-anon-transparent-huge-pages-into-nr_anon_pages-fix.patch mm-cleanup-add_to_page_cache_locked.patch thp-move-maybe_pmd_mkwrite-out-of-mk_huge_pmd.patch thp-do_huge_pmd_anonymous_page-cleanup.patch thp-consolidate-code-between-handle_mm_fault-and-do_huge_pmd_anonymous_page.patch mm-thp-count-thp_fault_fallback-anytime-thp-fault-fails.patch