summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2007-05-06 23:49:52 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-07 21:12:54 +0200
commitbc0055aee40ba40627361d8ffd8530d315920f18 (patch)
tree62e4f2821b7c7202df9d6b9e9ff9c7d01070ae5c /mm
parentQuicklist support for sparc64 (diff)
downloadlinux-bc0055aee40ba40627361d8ffd8530d315920f18.tar.xz
linux-bc0055aee40ba40627361d8ffd8530d315920f18.zip
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>
Diffstat (limited to 'mm')
-rw-r--r--mm/slob.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/slob.c b/mm/slob.c
index 03cce3d3d986..77786be032e0 100644
--- a/mm/slob.c
+++ b/mm/slob.c
@@ -298,7 +298,8 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size,
c->align = (flags & SLAB_MUST_HWCACHE_ALIGN) ? SLOB_ALIGN : 0;
if (c->align < align)
c->align = align;
- }
+ } else if (flags & SLAB_PANIC)
+ panic("Cannot create slab cache %s\n", name);
return c;
}