diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-08-26 22:25:52 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 18:18:19 -0400 |
commit | e5d679f33900c71d1a76ba07c5b04055abd34480 (patch) | |
tree | fb581f7156870056dbb91feaab9d3dd22fdcf61e /net/ipv4/route.c | |
parent | ff5dfe736dd9f6c74b206aa77c0465dfd503bdb9 (diff) |
[NET]: Use SLAB_PANIC
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index a4d4cb85a16..20ffe8e88c0 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -3147,13 +3147,9 @@ int __init ip_rt_init(void) | |||
3147 | } | 3147 | } |
3148 | #endif | 3148 | #endif |
3149 | 3149 | ||
3150 | ipv4_dst_ops.kmem_cachep = kmem_cache_create("ip_dst_cache", | 3150 | ipv4_dst_ops.kmem_cachep = |
3151 | sizeof(struct rtable), | 3151 | kmem_cache_create("ip_dst_cache", sizeof(struct rtable), 0, |
3152 | 0, SLAB_HWCACHE_ALIGN, | 3152 | SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL, NULL); |
3153 | NULL, NULL); | ||
3154 | |||
3155 | if (!ipv4_dst_ops.kmem_cachep) | ||
3156 | panic("IP: failed to allocate ip_dst_cache\n"); | ||
3157 | 3153 | ||
3158 | rt_hash_table = (struct rt_hash_bucket *) | 3154 | rt_hash_table = (struct rt_hash_bucket *) |
3159 | alloc_large_system_hash("IP route cache", | 3155 | alloc_large_system_hash("IP route cache", |