All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]mm/compation.c: checking page in lru twice
@ 2011-05-06 11:32 ` Figo.zhang
  0 siblings, 0 replies; 8+ messages in thread
From: Figo.zhang @ 2011-05-06 11:32 UTC (permalink / raw)
  To: lkml, mel
  Cc: linux-mm@kvack.org, kamezawa.hiroyu, minchan.kim, Andrew Morton,
	aarcange


in isolate_migratepages() have check page in LRU twice, the next one
at _isolate_lru_page(). 

Signed-off-by: Figo.zhang <figo1802@gmail.com> 
---

mm/compaction.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/mm/compaction.c b/mm/compaction.c
index 021a296..ac605cb 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -321,9 +321,6 @@ static unsigned long isolate_migratepages(struct zone *zone,
 			continue;
 		}
 
-		if (!PageLRU(page))
-			continue;
-
 		/*
 		 * PageLRU is set, and lru_lock excludes isolation,
 		 * splitting and collapsing (collapsing has already



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-05-06 18:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-06 11:32 [PATCH]mm/compation.c: checking page in lru twice Figo.zhang
2011-05-06 11:32 ` Figo.zhang
2011-05-06 13:09 ` Mel Gorman
2011-05-06 13:09   ` Mel Gorman
2011-05-06 18:26   ` Andrea Arcangeli
2011-05-06 18:26     ` Andrea Arcangeli
2011-05-06 18:21 ` Andrea Arcangeli
2011-05-06 18:21   ` Andrea Arcangeli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.