]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: compaction: make isolate_lru_page() filter-aware
authorMinchan Kim <minchan.kim@gmail.com>
Wed, 28 Sep 2011 00:49:57 +0000 (10:49 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 29 Sep 2011 06:07:59 +0000 (16:07 +1000)
commitda99631a123921a2d2ddb541735ca6b7e1f4f164
treec75fa079072ab1db5a5de6de44b7cb9dbba06556
parent3df2eb2221cd2901b6c58441fb8fa9bdf6cfd8a4
mm: compaction: make isolate_lru_page() filter-aware

In async mode, compaction doesn't migrate dirty or writeback pages.  So,
it's meaningless to pick the page and re-add it to lru list.

Of course, when we isolate the page in compaction, the page might be dirty
or writeback but when we try to migrate the page, the page would be not
dirty, writeback.  So it could be migrated.  But it's very unlikely as
isolate and migration cycle is much faster than writeout.

So, this patch helps cpu overhead and prevent unnecessary LRU churning.

Signed-off-by: Minchan Kim <minchan.kim@gmail.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Acked-by: Rik van Riel <riel@redhat.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <>
include/linux/mmzone.h
mm/compaction.c
mm/vmscan.c