projects/linux·commit 5e18e2b8

slob: do not pass the SLAB flags as GFP in kmem_cache_create()

5e18e2b8 · Catalin Marinas <[email protected]> · 2008-12-15 13:54:16 -08:00

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 <[email protected]>
Acked-by: Matt Mackall <[email protected]>
Cc: Cyrill Gorcunov <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
5e18e2b8b3d453e68accc3e295643fe4b5bbc295
Parents
35024c38

Changes

1 files changed · +1 −1

FileStatusAddDelContent
mm/slob.cmodified+1−1View file

mm/slob.c

View file
diff --git a/mm/slob.c b/mm/slob.c
index cb675d1..bf7e8fc 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;