[PATCH] vmscan: emove obsolete checks from shrink_list() and fix unlikely in refill_i...
authorChristoph Lameter <clameter@engr.sgi.com>
Wed, 22 Mar 2006 08:08:45 +0000 (00:08 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 22 Mar 2006 15:54:02 +0000 (07:54 -0800)
commit6e5ef1a96e6e3b123da56292bc35017c8c401491
treedb9532c53013bccd7ac9d186784bbc6fd343bca4
parenta7290ee08e434399660ace34427c17696e47c562
[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 <clameter@sgi.com>
Cc: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/vmscan.c