]> Git Repo - linux.git/commit - mm/slab.c
SLAB: don't allocate empty shared caches
authorEric Dumazet <[email protected]>
Sun, 6 May 2007 21:49:28 +0000 (14:49 -0700)
committerLinus Torvalds <[email protected]>
Mon, 7 May 2007 19:12:53 +0000 (12:12 -0700)
commit6310984694c8204ad16a2414cd58808fae68e02b
tree9579700c6b8b99e873462018cf536c00ab76dfb6
parent364fbb29a0105863d76a1f7bbc01783a4af30a75
SLAB: don't allocate empty shared caches

We can avoid allocating empty shared caches and avoid unecessary check of
cache->limit.  We save some memory.  We avoid bringing into CPU cache
unecessary cache lines.

All accesses to l3->shared are already checking NULL pointers so this patch is
safe.

Signed-off-by: Eric Dumazet <[email protected]>
Acked-by: Pekka Enberg <[email protected]>
Cc: Christoph Lameter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/slab.c
This page took 0.053257 seconds and 4 git commands to generate.