diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2006-03-25 03:06:43 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 08:22:49 -0800 |
commit | c5e3b83e97be4e09961c0af101644643e5d03d17 (patch) | |
tree | 29863b7ff7452d10f0af51c3ff7ef72235e81c90 /mm/slab.c | |
parent | 40c07ae8daa659b8feb149c84731629386873c16 (diff) | |
download | lwn-c5e3b83e97be4e09961c0af101644643e5d03d17.tar.gz lwn-c5e3b83e97be4e09961c0af101644643e5d03d17.zip |
[PATCH] mm: use kmem_cache_zalloc
Convert mm/ to use the new kmem_cache_zalloc allocator.
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/slab.c b/mm/slab.c index 6f5aeebd4306..6a3760e0353c 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -1990,10 +1990,9 @@ kmem_cache_create (const char *name, size_t size, size_t align, align = ralign; /* Get cache's description obj. */ - cachep = kmem_cache_alloc(&cache_cache, SLAB_KERNEL); + cachep = kmem_cache_zalloc(&cache_cache, SLAB_KERNEL); if (!cachep) goto oops; - memset(cachep, 0, sizeof(struct kmem_cache)); #if DEBUG cachep->obj_size = size; |