SLUB: Use ->objsize from struct kmem_cache_cpu in slab_free()
authorPekka Enberg <penberg@cs.helsinki.fi>
Wed, 14 Jan 2009 10:22:25 +0000 (12:22 +0200)
committerPekka Enberg <penberg@cs.helsinki.fi>
Wed, 14 Jan 2009 15:04:59 +0000 (17:04 +0200)
commit6047a007d0f6b7395cd158f3bdda34ab39a48821
tree3d1bb724290a5134338f3b2496a7252a5ec8dcb8
parenta6525042bfdfcab128bd91fad264de10fd24a55e
SLUB: Use ->objsize from struct kmem_cache_cpu in slab_free()

There's no reason to use ->objsize from struct kmem_cache in slab_free() for
the SLAB_DEBUG_OBJECTS case. All it does is generate extra cache pressure as we
try very hard not to touch struct kmem_cache in the fast-path.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slub.c