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/core/flow.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/core/flow.c')
-rw-r--r-- | net/core/flow.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/core/flow.c b/net/core/flow.c index 645241165e6c..f23e7e386543 100644 --- a/net/core/flow.c +++ b/net/core/flow.c | |||
@@ -343,12 +343,8 @@ static int __init flow_cache_init(void) | |||
343 | 343 | ||
344 | flow_cachep = kmem_cache_create("flow_cache", | 344 | flow_cachep = kmem_cache_create("flow_cache", |
345 | sizeof(struct flow_cache_entry), | 345 | sizeof(struct flow_cache_entry), |
346 | 0, SLAB_HWCACHE_ALIGN, | 346 | 0, SLAB_HWCACHE_ALIGN|SLAB_PANIC, |
347 | NULL, NULL); | 347 | NULL, NULL); |
348 | |||
349 | if (!flow_cachep) | ||
350 | panic("NET: failed to allocate flow cache slab\n"); | ||
351 | |||
352 | flow_hash_shift = 10; | 348 | flow_hash_shift = 10; |
353 | flow_lwm = 2 * flow_hash_size; | 349 | flow_lwm = 2 * flow_hash_size; |
354 | flow_hwm = 4 * flow_hash_size; | 350 | flow_hwm = 4 * flow_hash_size; |