diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2007-05-08 03:23:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:14:57 -0400 |
commit | 0e6b9c98be1b517bf99a21d8a7036a8a21e47dd1 (patch) | |
tree | d38264506008361717a737581c26f7d3de28284b /arch/powerpc/mm | |
parent | 72280ede316911fd5a82ef78d12a6705b1007d36 (diff) |
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>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r-- | arch/powerpc/mm/init_64.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index 4416d5140c53..fe1fe852181a 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c | |||
@@ -183,11 +183,8 @@ void pgtable_cache_init(void) | |||
183 | "for size: %08x...\n", name, i, size); | 183 | "for size: %08x...\n", name, i, size); |
184 | pgtable_cache[i] = kmem_cache_create(name, | 184 | pgtable_cache[i] = kmem_cache_create(name, |
185 | size, size, | 185 | size, size, |
186 | 0, | 186 | SLAB_PANIC, |
187 | zero_ctor, | 187 | zero_ctor, |
188 | NULL); | 188 | NULL); |
189 | if (! pgtable_cache[i]) | ||
190 | panic("pgtable_cache_init(): could not create %s!\n", | ||
191 | name); | ||
192 | } | 189 | } |
193 | } | 190 | } |