Index: linux-2.6/mm/slab.c =================================================================== --- linux-2.6.orig/mm/slab.c 2009-10-21 14:08:17.000000000 -0500 +++ linux-2.6/mm/slab.c 2009-10-21 14:12:28.000000000 -0500 @@ -266,8 +266,6 @@ */ struct array_cache { unsigned int avail; - unsigned int limit; - unsigned int batchcount; unsigned int touched; spinlock_t lock; void *entry[]; /* @@ -895,8 +893,6 @@ kmemleak_no_scan(nc); if (nc) { nc->avail = 0; - nc->limit = entries; - nc->batchcount = batchcount; nc->touched = 0; spin_lock_init(&nc->lock); } @@ -913,7 +909,7 @@ struct array_cache *from, unsigned int max) { /* Figure out how many entries to transfer */ - int nr = min(min(from->avail, max), to->limit - to->avail); + int nr = min(min(from->avail, max), cache->limit - to->avail); if (!nr) return 0; @@ -1014,7 +1010,7 @@ * into the free lists and getting them back later. */ if (rl3->shared) - transfer_objects(rl3->shared, ac, ac->limit); + transfer_objects(rl3->shared, ac, cache->limit); free_block(cachep, ac->entry, ac->avail, node); ac->avail = 0;