diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-07-31 00:06:46 +0400 |
---|---|---|
committer | Christoph Lameter <clameter@sgi.com> | 2007-08-10 08:57:15 +0400 |
commit | fcda3d89bf1366f6801447eab2d8a75ac5b9c4ce (patch) | |
tree | 47382ad57b48a1a0e46a6190991f88a9e6973e45 /include/asm-mips/cacheops.h | |
parent | 6adb31c90c47262c8a25bf5097de9b3426caf3ae (diff) | |
download | linux-fcda3d89bf1366f6801447eab2d8a75ac5b9c4ce.tar.xz |
SLUB: Remove checks for MAX_PARTIAL from kmem_cache_shrink
The MAX_PARTIAL checks were supposed to be an optimization. However, slab
shrinking is a manually triggered process either through running slabinfo
or by the kernel calling kmem_cache_shrink.
If one really wants to shrink a slab then all operations should be done
regardless of the size of the partial list. This also fixes an issue that
could surface if the number of partial slabs was initially above MAX_PARTIAL
in kmem_cache_shrink and later drops below MAX_PARTIAL through the
elimination of empty slabs on the partial list (rare). In that case a few
slabs may be left off the partial list (and only be put back when they
are empty).
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Diffstat (limited to 'include/asm-mips/cacheops.h')
0 files changed, 0 insertions, 0 deletions