diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2007-05-06 17:49:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 15:12:54 -0400 |
commit | bc0055aee40ba40627361d8ffd8530d315920f18 (patch) | |
tree | 62e4f2821b7c7202df9d6b9e9ff9c7d01070ae5c | |
parent | 3a2cba993b0a04f258ab75e15cf3f08ada268dbd (diff) |
slob: handle SLAB_PANIC flag
kmem_cache_create() for slob doesn't handle SLAB_PANIC.
Signed-off-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/slob.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -298,7 +298,8 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size, | |||
298 | c->align = (flags & SLAB_MUST_HWCACHE_ALIGN) ? SLOB_ALIGN : 0; | 298 | c->align = (flags & SLAB_MUST_HWCACHE_ALIGN) ? SLOB_ALIGN : 0; |
299 | if (c->align < align) | 299 | if (c->align < align) |
300 | c->align = align; | 300 | c->align = align; |
301 | } | 301 | } else if (flags & SLAB_PANIC) |
302 | panic("Cannot create slab cache %s\n", name); | ||
302 | 303 | ||
303 | return c; | 304 | return c; |
304 | } | 305 | } |