[PATCH] mm: improve function of sc->may_writepage
commit52a8363eae3872af15880292ff4e06d0fab36986
authorChristoph Lameter <clameter@engr.sgi.com>
Wed, 1 Feb 2006 11:05:28 +0000 (1 03:05 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:15 +0000 (1 08:53 -0800)
tree9ac9d0f00cc2e35e5d95c7be77874477e25847b4
parentce2ea89ba101d976907128441ba3aca72a8804b9
[PATCH] mm: improve function of sc->may_writepage

Make sc->may_writepage control the writeout behavior of shrink_list.

Remove the laptop_mode trick from shrink_list and instead set may_writepage
in try_to_free_pages properly.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/vmscan.c