From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail144.messagelabs.com (mail144.messagelabs.com [216.82.254.51]) by kanga.kvack.org (Postfix) with ESMTP id DA9EE9000C1 for ; Wed, 27 Apr 2011 00:22:38 -0400 (EDT) Received: by vws4 with SMTP id 4so1461103vws.14 for ; Tue, 26 Apr 2011 21:22:37 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 27 Apr 2011 13:22:37 +0900 Message-ID: Subject: Re: [RFC 8/8] compaction: make compaction use in-order putback From: Minchan Kim Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: linux-mm , LKML , Christoph Lameter , Johannes Weiner , KAMEZAWA Hiroyuki , Minchan Kim , KOSAKI Motohiro , Mel Gorman , Rik van Riel , Andrea Arcangeli 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org