lkml.org 
[lkml]   [2008]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] Do not pass the SLAB flags as GFP in slob kmem_cache_create
From
Date
It looks like 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>
Cc: Matt Mackall <mpm@selenic.com>
---
mm/slob.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/slob.c b/mm/slob.c
index ff5a98d..dce9258 100644
--- a/mm/slob.c
+++ b/mm/slob.c
@@ -538,7 +538,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;


\
 
 \ /
  Last update: 2008-12-10 18:39    [W:0.070 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site