projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a2cba9
)
slob: handle SLAB_PANIC flag
author
Akinobu Mita
<akinobu.mita@gmail.com>
Sun, 6 May 2007 21:49:52 +0000
(14:49 -0700)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Mon, 7 May 2007 19:12:54 +0000
(12:12 -0700)
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>
mm/slob.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/slob.c
b/mm/slob.c
index 03cce3d3d986346106e725c3848ec7505fe7d847..77786be032e08d64e385ef6b00ce60185ec5049d 100644
(file)
--- 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;
}