From: Catalin Marinas Date: Mon, 15 Dec 2008 21:54:16 +0000 (-0800) Subject: slob: do not pass the SLAB flags as GFP in kmem_cache_create() X-Git-Tag: v2.6.28-rc9~23 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5e18e2b8b3d453e68accc3e295643fe4b5bbc295;p=linux-2.6-omap-h63xx.git slob: do not pass the SLAB flags as GFP in kmem_cache_create() The kmem_cache_create() function in the slob allocator passes the SLAB flags as GFP flags to the slob_alloc() function. The patch changes this call to pass GFP_KERNEL as the other allocators seem to do. Signed-off-by: Catalin Marinas Acked-by: Matt Mackall Cc: Cyrill Gorcunov Cc: Christoph Lameter Cc: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/slob.c b/mm/slob.c index cb675d12679..bf7e8fc3aed 100644 --- a/mm/slob.c +++ b/mm/slob.c @@ -535,7 +535,7 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size, struct kmem_cache *c; c = slob_alloc(sizeof(struct kmem_cache), - flags, ARCH_KMALLOC_MINALIGN, -1); + GFP_KERNEL, ARCH_KMALLOC_MINALIGN, -1); if (c) { c->name = name;