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:
@@ -1032,19 +1032,19 @@ static int
|
||||
nfsd4_init_slabs(void)
|
||||
{
|
||||
stateowner_slab = kmem_cache_create("nfsd4_stateowners",
|
||||
sizeof(struct nfs4_stateowner), 0, 0, NULL, NULL);
|
||||
sizeof(struct nfs4_stateowner), 0, 0, NULL);
|
||||
if (stateowner_slab == NULL)
|
||||
goto out_nomem;
|
||||
file_slab = kmem_cache_create("nfsd4_files",
|
||||
sizeof(struct nfs4_file), 0, 0, NULL, NULL);
|
||||
sizeof(struct nfs4_file), 0, 0, NULL);
|
||||
if (file_slab == NULL)
|
||||
goto out_nomem;
|
||||
stateid_slab = kmem_cache_create("nfsd4_stateids",
|
||||
sizeof(struct nfs4_stateid), 0, 0, NULL, NULL);
|
||||
sizeof(struct nfs4_stateid), 0, 0, NULL);
|
||||
if (stateid_slab == NULL)
|
||||
goto out_nomem;
|
||||
deleg_slab = kmem_cache_create("nfsd4_delegations",
|
||||
sizeof(struct nfs4_delegation), 0, 0, NULL, NULL);
|
||||
sizeof(struct nfs4_delegation), 0, 0, NULL);
|
||||
if (deleg_slab == NULL)
|
||||
goto out_nomem;
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user