Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bc0055aee40ba40627361d8ffd8530d315920f18 Commit: bc0055aee40ba40627361d8ffd8530d315920f18 Parent: 3a2cba993b0a04f258ab75e15cf3f08ada268dbd Author: Akinobu Mita <[EMAIL PROTECTED]> AuthorDate: Sun May 6 14:49:52 2007 -0700 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Mon May 7 12:12:54 2007 -0700
slob: handle SLAB_PANIC flag kmem_cache_create() for slob doesn't handle SLAB_PANIC. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- mm/slob.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/mm/slob.c b/mm/slob.c index 03cce3d..77786be 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; } - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html