]> git.hungrycats.org Git - linux/commit
[PATCH] vmscan: drive everything via nr_to_scan
authorAndrew Morton <akpm@osdl.org>
Fri, 12 Mar 2004 00:24:01 +0000 (16:24 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 12 Mar 2004 00:24:01 +0000 (16:24 -0800)
commit5954a8b0d90cd5d747f0cd9d18388a4173375dbb
tree3b1a965f2e96481759a80451901682872a4873ea
parentb532f4af34f0e0f96ee32803f1e5df02d5ae06bd
[PATCH] vmscan: drive everything via nr_to_scan

Page reclaim is currently a bit schitzo: sometimes we say "go and scan this
many pages and tell me how many pages were freed" and at other times we say
"go and scan this many pages, but stop if you freed this many".

It makes the logic harder to control and to understand.  This patch coverts
everything into the "go and scan this many pages and tell me how many pages
were freed" model.

It doesn't seem to affect performance much either way.
mm/vmscan.c