mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[NET]: Use SLAB_PANIC
Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
ff5dfe736d
commit
e5d679f339
12 changed files with 22 additions and 62 deletions
|
|
@ -1781,14 +1781,9 @@ void __init dn_route_init(void)
|
|||
{
|
||||
int i, goal, order;
|
||||
|
||||
dn_dst_ops.kmem_cachep = kmem_cache_create("dn_dst_cache",
|
||||
sizeof(struct dn_route),
|
||||
0, SLAB_HWCACHE_ALIGN,
|
||||
NULL, NULL);
|
||||
|
||||
if (!dn_dst_ops.kmem_cachep)
|
||||
panic("DECnet: Failed to allocate dn_dst_cache\n");
|
||||
|
||||
dn_dst_ops.kmem_cachep =
|
||||
kmem_cache_create("dn_dst_cache", sizeof(struct dn_route), 0,
|
||||
SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL, NULL);
|
||||
init_timer(&dn_route_timer);
|
||||
dn_route_timer.function = dn_dst_check_expire;
|
||||
dn_route_timer.expires = jiffies + decnet_dst_gc_interval * HZ;
|
||||
|
|
|
|||
Loading…
Reference in a new issue