diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2008-12-15 13:54:16 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-15 16:27:06 -0800 |
commit | 5e18e2b8b3d453e68accc3e295643fe4b5bbc295 (patch) | |
tree | f5569258355ed616ddc26c10b24c3dfad2d3c9d7 /mm | |
parent | 35024c384ba4faaeac361a1ffee05a1475f9a9ed (diff) | |
download | linux-stable-5e18e2b8b3d453e68accc3e295643fe4b5bbc295.tar.gz linux-stable-5e18e2b8b3d453e68accc3e295643fe4b5bbc295.tar.bz2 linux-stable-5e18e2b8b3d453e68accc3e295643fe4b5bbc295.zip |
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 <catalin.marinas@arm.com>
Acked-by: Matt Mackall <mpm@selenic.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slob.c b/mm/slob.c index cb675d126791..bf7e8fc3aed8 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; |