lkml.org 
[lkml]   [2011]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH]mm/compation.c: checking page in lru twice
From
Date

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



\
 
 \ /
  Last update: 2011-05-06 13:35    [W:0.096 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site