]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: remove lru type checks from __isolate_lru_page()
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Thu, 12 Apr 2012 22:52:06 +0000 (08:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 17 Apr 2012 03:47:20 +0000 (13:47 +1000)
commit6a881b79851bf5b6184371db643726fe3d4e4fed
tree150e729e3927145b4803274cd811902609c5376e
parent88f241c13259f6b8dddd4f25ca41b971072a02ac
mm: remove lru type checks from __isolate_lru_page()

After patch "mm: forbid lumpy-reclaim in shrink_active_list()" we can
completely remove anon/file and active/inactive lru type filters from
__isolate_lru_page(), because isolation for 0-order reclaim always
isolates pages from right lru list.  And pages-isolation for lumpy
shrink_inactive_list() or memory-compaction anyway allowed to isolate
pages from all evictable lru lists.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Hugh Dickins <hughd@google.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Glauber Costa <glommer@parallels.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mmzone.h
include/linux/swap.h
mm/compaction.c
mm/vmscan.c