]> git.neil.brown.name Git - history.git/commit
[PATCH] shrink_slab acounts for seeks incorrectly
authorAndrew Morton <akpm@osdl.org>
Tue, 30 Dec 2003 07:48:44 +0000 (23:48 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 30 Dec 2003 07:48:44 +0000 (23:48 -0800)
commitc3f4656118a78c1c294e0b4d338ac946265a822b
tree604a4f357f8d0cae3222d73b0815c0e6de07d4a5
parent4be16e54c9f261283606da017428b9051e591d67
[PATCH] shrink_slab acounts for seeks incorrectly

wli points out that shrink_slab inverts the sense of shrinker->seeks: those
caches which require more seeks to reestablish an object are shrunk harder.
That's wrong - they should be shrunk less.

So fix that up, but scaling the result so that the patch is actually a no-op
at this time, because all caches use DEFAULT_SEEKS (2).
mm/vmscan.c