]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: zone_reclaim: make isolate_lru_page() filter-aware
authorMinchan Kim <minchan.kim@gmail.com>
Wed, 28 Sep 2011 00:49:59 +0000 (10:49 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 30 Sep 2011 04:53:17 +0000 (14:53 +1000)
commitacd45981175d88a6b9c119a8cce66b8d59a28882
treefa2a5cbf2b1fdd494724e9a74f5c3bf09ea9a57a
parent5289ede2fc0c5dbc25b97c9e59aa19285b89ff1c
mm: zone_reclaim: make isolate_lru_page() filter-aware

In __zone_reclaim case, we don't want to shrink mapped page.  Nonetheless,
we have isolated mapped page and re-add it into LRU's head.  It's
unnecessary CPU overhead and makes LRU churning.

Of course, when we isolate the page, the page might be mapped but when we
try to migrate the page, the page would be not mapped.  So it could be
migrated.  But race is rare and although it happens, it's no big deal.

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>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <>
include/linux/mmzone.h
mm/vmscan.c