aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-07-19 21:11:58 -0400
committerPaul Mundt <lethal@linux-sh.org>2007-07-19 21:11:58 -0400
commit20c2df83d25c6a95affe6157a4c9cac4cf5ffaac (patch)
tree415c4453d2b17a50abe7a3e515177e1fa337bd67 /fs/nfsd
parent64fb98fc40738ae1a98bcea9ca3145b89fb71524 (diff)
mm: Remove slab destructors from kmem_cache_create().
Slab destructors were no longer supported after Christoph's c59def9f222d44bb7e2f0a559f2906191a0862d7 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>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4state.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 6284807bd37e..3f559700788f 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -1032,19 +1032,19 @@ static int
1032nfsd4_init_slabs(void) 1032nfsd4_init_slabs(void)
1033{ 1033{
1034 stateowner_slab = kmem_cache_create("nfsd4_stateowners", 1034 stateowner_slab = kmem_cache_create("nfsd4_stateowners",
1035 sizeof(struct nfs4_stateowner), 0, 0, NULL, NULL); 1035 sizeof(struct nfs4_stateowner), 0, 0, NULL);
1036 if (stateowner_slab == NULL) 1036 if (stateowner_slab == NULL)
1037 goto out_nomem; 1037 goto out_nomem;
1038 file_slab = kmem_cache_create("nfsd4_files", 1038 file_slab = kmem_cache_create("nfsd4_files",
1039 sizeof(struct nfs4_file), 0, 0, NULL, NULL); 1039 sizeof(struct nfs4_file), 0, 0, NULL);
1040 if (file_slab == NULL) 1040 if (file_slab == NULL)
1041 goto out_nomem; 1041 goto out_nomem;
1042 stateid_slab = kmem_cache_create("nfsd4_stateids", 1042 stateid_slab = kmem_cache_create("nfsd4_stateids",
1043 sizeof(struct nfs4_stateid), 0, 0, NULL, NULL); 1043 sizeof(struct nfs4_stateid), 0, 0, NULL);
1044 if (stateid_slab == NULL) 1044 if (stateid_slab == NULL)
1045 goto out_nomem; 1045 goto out_nomem;
1046 deleg_slab = kmem_cache_create("nfsd4_delegations", 1046 deleg_slab = kmem_cache_create("nfsd4_delegations",
1047 sizeof(struct nfs4_delegation), 0, 0, NULL, NULL); 1047 sizeof(struct nfs4_delegation), 0, 0, NULL);
1048 if (deleg_slab == NULL) 1048 if (deleg_slab == NULL)
1049 goto out_nomem; 1049 goto out_nomem;
1050 return 0; 1050 return 0;