Messages in this thread Patch in this message | | | Date | Wed, 7 Apr 2010 19:27:07 +0100 | From | Mel Gorman <> | Subject | Re: [PATCH 09/14] Add /proc trigger for memory compaction |
| |
> 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@csn.ul.ie> --- 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);
| |