From 6310984694c8204ad16a2414cd58808fae68e02b Mon Sep 17 00:00:00 2001 From: Eric Dumazet Date: Sun, 6 May 2007 14:49:28 -0700 Subject: [PATCH] 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 Acked-by: Pekka Enberg Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed