lkml.org 
[lkml]   [2011]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectRe: [RFC 8/8] compaction: make compaction use in-order putback
From
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


\
 
 \ /
  Last update: 2011-04-27 06:25    [W:0.466 / U:34.012 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site