Re: [RFC 8/8] compaction: make compaction use in-order putback
From: Minchan Kim
Date: Wed Apr 27 2011 - 00:22:42 EST
I should have add up this piece.
I will resend all after work.
===
diff --git a/mm/compaction.c b/mm/compaction.c
index 95af5bc..59a675c 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -327,7 +328,7 @@ static unsigned long isolate_migratepages(struct zone *zone,
/* Successfully isolated */
del_page_from_lru_list(zone, page, page_lru(page));
- list_add(&page->lru, migratelist);
+ list_add(&pages_lru->lru, migratelist);
cc->nr_migratepages++;
nr_isolated++;
@@ -525,7 +525,7 @@ static int compact_zone(struct zone *zone, struct
compact_control *cc)
nr_migrate = cc->nr_migratepages;
migrate_pages(&cc->migratepages, compaction_alloc,
(unsigned long)cc, false,
- cc->sync, false);
+ cc->sync, true);
count_vm_event(PGMIGRATE);
update_nr_listpages(cc);
nr_remaining = cc->nr_migratepages;
==
--
Kind regards,
Minchan Kim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/