From: Christoph Lameter Date: Wed, 22 Mar 2006 08:08:45 +0000 (-0800) Subject: [PATCH] vmscan: emove obsolete checks from shrink_list() and fix unlikely in refill_i... X-Git-Tag: v2.6.17-rc1~1129^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e5ef1a96e6e3b123da56292bc35017c8c401491;p=pandora-kernel.git [PATCH] vmscan: emove obsolete checks from shrink_list() and fix unlikely in refill_inactive_zone() As suggested by Marcelo: 1. The optimization introduced recently for not calling page_referenced() during zone reclaim makes two additional checks in shrink_list unnecessary. 2. The if (unlikely(sc->may_swap)) in refill_inactive_zone is optimized for the zone_reclaim case. However, most peoples system only does swap. Undo that. Signed-off-by: Christoph Lameter Cc: Marcelo Tosatti Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed