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
@ -252,10 +252,8 @@ ia32_init (void)
|
||||
extern struct kmem_cache *partial_page_cachep;
|
||||
|
||||
partial_page_cachep = kmem_cache_create("partial_page_cache",
|
||||
sizeof(struct partial_page), 0, 0,
|
||||
NULL, NULL);
|
||||
if (!partial_page_cachep)
|
||||
panic("Cannot create partial page SLAB cache");
|
||||
sizeof(struct partial_page),
|
||||
0, SLAB_PANIC, NULL, NULL);
|
||||
}
|
||||
#endif
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user