mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
[NET]: Use SLAB_PANIC
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ff5dfe736d
commit
e5d679f339
12 changed files with 22 additions and 62 deletions
|
@ -343,12 +343,8 @@ static int __init flow_cache_init(void)
|
|||
|
||||
flow_cachep = kmem_cache_create("flow_cache",
|
||||
sizeof(struct flow_cache_entry),
|
||||
0, SLAB_HWCACHE_ALIGN,
|
||||
0, SLAB_HWCACHE_ALIGN|SLAB_PANIC,
|
||||
NULL, NULL);
|
||||
|
||||
if (!flow_cachep)
|
||||
panic("NET: failed to allocate flow cache slab\n");
|
||||
|
||||
flow_hash_shift = 10;
|
||||
flow_lwm = 2 * flow_hash_size;
|
||||
flow_hwm = 4 * flow_hash_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue