From: Eric Dumazet Date: Sun, 6 May 2007 21:49:28 +0000 (-0700) Subject: SLAB: don't allocate empty shared caches X-Git-Tag: v2.6.22-rc1~975 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6310984694c8204ad16a2414cd58808fae68e02b;p=pandora-kernel.git 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-diff-tree failed