Re: C12 [12/19] Move kmem_cache allocations into common code.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 21 Aug 2012, Glauber Costa wrote:

> Doesn't boot (SLUB + debug options)

Subject: slub: use kmem_cache_zalloc to zero kmalloc cache

Memory for kmem_cache needs to be zeroed in slub after we moved the
allocation into slab_commmon.

Signed-off-by: Christoph Lameter <cl@xxxxxxxxx>

Index: linux/mm/slub.c
===================================================================
--- linux.orig/mm/slub.c	2012-08-21 15:54:42.298087150 -0500
+++ linux/mm/slub.c	2012-08-21 15:55:16.386555367 -0500
@@ -3259,7 +3259,7 @@ static struct kmem_cache *__init create_
 {
 	struct kmem_cache *s;

-	s = kmem_cache_alloc(kmem_cache, GFP_NOWAIT);
+	s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT);

 	/*
 	 * This function is called with IRQs disabled during early-boot on

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]