mm: Remove slab destructors from kmem_cache_create().
Slab destructors were no longer supported after Christoph's
c59def9f22
change. They've been
BUGs for both slab and slub, and slob never supported them
either.
This rips out support for the dtor pointer from kmem_cache_create()
completely and fixes up every single callsite in the kernel (there were
about 224, not including the slab allocator definitions themselves,
or the documentation references).
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@ -590,7 +590,7 @@ static int init_id_cache(void)
|
||||
{
|
||||
if (!idr_layer_cache)
|
||||
idr_layer_cache = kmem_cache_create("idr_layer_cache",
|
||||
sizeof(struct idr_layer), 0, 0, idr_cache_ctor, NULL);
|
||||
sizeof(struct idr_layer), 0, 0, idr_cache_ctor);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1021,7 +1021,7 @@ void __init radix_tree_init(void)
|
||||
{
|
||||
radix_tree_node_cachep = kmem_cache_create("radix_tree_node",
|
||||
sizeof(struct radix_tree_node), 0,
|
||||
SLAB_PANIC, radix_tree_node_ctor, NULL);
|
||||
SLAB_PANIC, radix_tree_node_ctor);
|
||||
radix_tree_init_maxindex();
|
||||
hotcpu_notifier(radix_tree_callback, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user