projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35024c3
)
slob: do not pass the SLAB flags as GFP in kmem_cache_create()
author
Catalin Marinas
<
[email protected]
>
Mon, 15 Dec 2008 21:54:16 +0000
(13:54 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 16 Dec 2008 00:27:06 +0000
(16:27 -0800)
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]
>
mm/slob.c
patch
|
blob
|
history
diff --git
a/mm/slob.c
b/mm/slob.c
index cb675d1267914dc263100b9c4a9ea5eb20fefa48..bf7e8fc3aed806542e44cc7b1d222d9e2b56dc3a 100644
(file)
--- 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;