diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-05-07 08:15:13 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-07 08:15:13 -0700 |
| commit | 862fb2829261c21f53e9bcd843c801d4781512a8 (patch) | |
| tree | c6d63ef6983b859ee338efcbbeb52193e2f54d1d /include/linux | |
| parent | c06d6406794377f1335ed4694d762c1bacc57519 (diff) | |
[PATCH] slab: initialisation cleanup and oops fix
From: Manfred Spraul <manfred@colorfullife.com>
attached is the promised cleanup/bugfix patch for the slab bootstrap:
- kmem_cache_init & kmem_cache_sizes_init merged into one function,
called after mem_init(). It's impossible to bring slab to an operational
state without working gfp, thus the early partial initialization is not
necessary.
- g_cpucache_up set to FULL at the end of kmem_cache_init instead of the
module init call. This is a bugfix: slab was completely initialized,
just the update of the state was missing.
- some documentation for the bootstrap added.
The minimal fix for the bug is a two-liner: move g_cpucache_up=FULL from
cpucache_init to kmem_cache_sizes_init, but I want to get rid of
kmem_cache_sizes_init, too.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/slab.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h index 49374df2d450..b2b6f0498e2a 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -49,7 +49,6 @@ typedef struct kmem_cache_s kmem_cache_t; /* prototypes */ extern void kmem_cache_init(void); -extern void kmem_cache_sizes_init(void); extern kmem_cache_t *kmem_find_general_cachep(size_t, int gfpflags); extern kmem_cache_t *kmem_cache_create(const char *, size_t, size_t, unsigned long, |
