]> git.hungrycats.org Git - linux/commit
[PATCH] shrink_all_memory() fixes
authorAndrew Morton <akpm@osdl.org>
Thu, 3 Jun 2004 00:58:03 +0000 (17:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 3 Jun 2004 00:58:03 +0000 (17:58 -0700)
commit114b0865dff32dd82a73d345a3c1907015d08d1f
treefe1320b7b37c9652fdc348773af59b186f3f2ee2
parent97e012bbf087abb5dff904aa042eb0a3e5e0bd08
[PATCH] shrink_all_memory() fixes

- Off-by-one in balance_pgdat means that we're not scanning the zones all
  the way down to priority=0.

- Always set zone->temp_priority in shrink_caches().  I'm not sure why I had
  the `if (zone->free_pages < zone->pages_high)' test in there, but it's
  preventing us from setting ->prev_priority correctly on the
  try_to_free_pages() path.

- Set zone->prev_priority to the current priority if it's currently a
  "lower" priority.  This allows us to build up the pressure on mapped pages
  on the first scanning pass rather than only on successive passes.

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