Re: [PATCH] slab: introduce kmem_cache_zalloc allocator

From: Eric Dumazet
Date: Mon Mar 20 2006 - 08:48:50 EST


Pekka J Enberg a écrit :
From: Pekka Enberg <penberg@xxxxxxxxxxxxxx>

This patch introduces a memory-zeroing variant of kmem_cache_alloc. The
allocator already exits in XFS and there are potential users for it so
this patch makes the allocator available for the general public.


Excellent.

Please change zalloc() so that a zalloc(constant_value) uses your kmem_cache_zalloc on the appropriate cache.

This way we can really introduce zalloc() *everywhere* without paying the cost of runtime lookup to find the right cache.

Eric
-
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/