]> 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>
Thu, 29 Sep 2011 06:07:59 +0000 (16:07 +1000)
commitf8a2575fb6692d5a4fb3b044372b7f80b0cd9d9f
treedf2e699040f23f4c0d6e40d63d89494ba19fefba
parentfbe58648fb8facd7f5f83acdfbc1bf916942a67b
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