Re: [PATCH] SLAB : Dont allocate empty shared caches

From: Pekka Enberg
Date: Wed Mar 21 2007 - 09:13:46 EST


On 3/21/07, Eric Dumazet <dada1@xxxxxxxxxxxxx> wrote:
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.

Looks good to me.

Acked-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/