> mm,compaction: Tighten up the allowed values for compact_memory and initialisation > Minor mistake in the initialisation part of the patch ==== CUT HERE ==== mm,compaction: Initialise cc->zone at the correct time Init cc->zone after we know what zone we are looking for. This is a fix to the fix patch "mm,compaction: Tighten up the allowed values for compact_memory and initialisation" Signed-off-by: Mel Gorman <mel@xxxxxxxxx> --- mm/compaction.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mm/compaction.c b/mm/compaction.c index d9c5733..effe57d 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -396,13 +396,13 @@ static int compact_node(int nid) struct compact_control cc = { .nr_freepages = 0, .nr_migratepages = 0, - .zone = zone, }; zone = &pgdat->node_zones[zoneid]; if (!populated_zone(zone)) continue; + cc.zone = zone, INIT_LIST_HEAD(&cc.freepages); INIT_LIST_HEAD(&cc.migratepages); -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>