Messages in this thread | | | Date | Mon, 20 Mar 2006 14:51:12 +0100 | From | Eric Dumazet <> | Subject | Re: [PATCH] slab: introduce kmem_cache_zalloc allocator |
| |
Pekka J Enberg a écrit : > From: Pekka Enberg <penberg@cs.helsinki.fi> > > 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |