From: "Figo.zhang" <figo1802@gmail.com>
To: lkml <linux-kernel@vger.kernel.org>, mel@csn.ul.ie
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
kamezawa.hiroyu@jp.fujisu.com, minchan.kim@gmail.com,
Andrew Morton <akpm@osdl.org>,
aarcange@redhat.com
Subject: [PATCH]mm/compation.c: checking page in lru twice
Date: Fri, 06 May 2011 19:32:46 +0800 [thread overview]
Message-ID: <1304681575.15473.4.camel@figo-desktop> (raw)
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
--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2011-05-06 11:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-06 11:32 Figo.zhang [this message]
2011-05-06 13:09 ` Mel Gorman
2011-05-06 18:26 ` Andrea Arcangeli
2011-05-06 18:21 ` Andrea Arcangeli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1304681575.15473.4.camel@figo-desktop \
--to=figo1802@gmail.com \
--cc=aarcange@redhat.com \
--cc=akpm@osdl.org \
--cc=kamezawa.hiroyu@jp.fujisu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mel@csn.ul.ie \
--cc=minchan.kim@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox