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:
@ -1767,7 +1767,7 @@ int proto_register(struct proto *prot, int alloc_slab)
|
||||
|
||||
if (alloc_slab) {
|
||||
prot->slab = kmem_cache_create(prot->name, prot->obj_size, 0,
|
||||
SLAB_HWCACHE_ALIGN, NULL, NULL);
|
||||
SLAB_HWCACHE_ALIGN, NULL);
|
||||
|
||||
if (prot->slab == NULL) {
|
||||
printk(KERN_CRIT "%s: Can't create sock SLAB cache!\n",
|
||||
@ -1785,7 +1785,7 @@ int proto_register(struct proto *prot, int alloc_slab)
|
||||
sprintf(request_sock_slab_name, mask, prot->name);
|
||||
prot->rsk_prot->slab = kmem_cache_create(request_sock_slab_name,
|
||||
prot->rsk_prot->obj_size, 0,
|
||||
SLAB_HWCACHE_ALIGN, NULL, NULL);
|
||||
SLAB_HWCACHE_ALIGN, NULL);
|
||||
|
||||
if (prot->rsk_prot->slab == NULL) {
|
||||
printk(KERN_CRIT "%s: Can't create request sock SLAB cache!\n",
|
||||
@ -1807,7 +1807,7 @@ int proto_register(struct proto *prot, int alloc_slab)
|
||||
kmem_cache_create(timewait_sock_slab_name,
|
||||
prot->twsk_prot->twsk_obj_size,
|
||||
0, SLAB_HWCACHE_ALIGN,
|
||||
NULL, NULL);
|
||||
NULL);
|
||||
if (prot->twsk_prot->twsk_slab == NULL)
|
||||
goto out_free_timewait_sock_slab_name;
|
||||
}
|
||||
|
Reference in New Issue
Block a user