use SLAB_PANIC flag cleanup
Use SLAB_PANIC and delete duplicated panic(). Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: Ian Molton <spyro@f2s.com> Cc: David Howells <dhowells@redhat.com> Cc: Andi Kleen <ak@suse.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
72280ede31
commit
0e6b9c98be
@@ -311,9 +311,9 @@ static int __init pmb_init(void)
|
||||
|
||||
BUG_ON(unlikely(nr_entries >= NR_PMB_ENTRIES));
|
||||
|
||||
pmb_cache = kmem_cache_create("pmb", sizeof(struct pmb_entry),
|
||||
0, 0, pmb_cache_ctor, pmb_cache_dtor);
|
||||
BUG_ON(!pmb_cache);
|
||||
pmb_cache = kmem_cache_create("pmb", sizeof(struct pmb_entry), 0,
|
||||
SLAB_PANIC, pmb_cache_ctor,
|
||||
pmb_cache_dtor);
|
||||
|
||||
jump_to_P2();
|
||||
|
||||
|
Reference in New Issue
Block a user