From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx181.postini.com [74.125.245.181]) by kanga.kvack.org (Postfix) with SMTP id 275FC6B0034 for ; Wed, 5 Jun 2013 11:10:47 -0400 (EDT) From: Andrea Arcangeli Subject: [PATCH 2/7] mm: compaction: scan all memory with /proc/sys/vm/compact_memory Date: Wed, 5 Jun 2013 17:10:32 +0200 Message-Id: <1370445037-24144-3-git-send-email-aarcange@redhat.com> In-Reply-To: <1370445037-24144-1-git-send-email-aarcange@redhat.com> References: <1370445037-24144-1-git-send-email-aarcange@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org Cc: Mel Gorman , Rik van Riel , Hugh Dickins , Richard Davies , Shaohua Li , Rafael Aquini Reset the stats so /proc/sys/vm/compact_memory will scan all memory. Signed-off-by: Andrea Arcangeli --- mm/compaction.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm/compaction.c b/mm/compaction.c index 05ccb4c..cac9594 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -1136,12 +1136,14 @@ void compact_pgdat(pg_data_t *pgdat, int order) static void compact_node(int nid) { + pg_data_t *pgdat = NODE_DATA(nid); struct compact_control cc = { .order = -1, .sync = true, }; - __compact_pgdat(NODE_DATA(nid), &cc); + reset_isolation_suitable(pgdat); + __compact_pgdat(pgdat, &cc); } /* Compact all nodes in the system */ -- 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/ . Don't email: email@kvack.org