diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-07-19 21:11:58 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-07-19 21:11:58 -0400 |
commit | 20c2df83d25c6a95affe6157a4c9cac4cf5ffaac (patch) | |
tree | 415c4453d2b17a50abe7a3e515177e1fa337bd67 /fs/gfs2 | |
parent | 64fb98fc40738ae1a98bcea9ca3145b89fb71524 (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/gfs2')
-rw-r--r-- | fs/gfs2/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/gfs2/main.c b/fs/gfs2/main.c index 787a0edef100..d5d4e68b8807 100644 --- a/fs/gfs2/main.c +++ b/fs/gfs2/main.c | |||
@@ -72,7 +72,7 @@ static int __init init_gfs2_fs(void) | |||
72 | gfs2_glock_cachep = kmem_cache_create("gfs2_glock", | 72 | gfs2_glock_cachep = kmem_cache_create("gfs2_glock", |
73 | sizeof(struct gfs2_glock), | 73 | sizeof(struct gfs2_glock), |
74 | 0, 0, | 74 | 0, 0, |
75 | gfs2_init_glock_once, NULL); | 75 | gfs2_init_glock_once); |
76 | if (!gfs2_glock_cachep) | 76 | if (!gfs2_glock_cachep) |
77 | goto fail; | 77 | goto fail; |
78 | 78 | ||
@@ -80,13 +80,13 @@ static int __init init_gfs2_fs(void) | |||
80 | sizeof(struct gfs2_inode), | 80 | sizeof(struct gfs2_inode), |
81 | 0, SLAB_RECLAIM_ACCOUNT| | 81 | 0, SLAB_RECLAIM_ACCOUNT| |
82 | SLAB_MEM_SPREAD, | 82 | SLAB_MEM_SPREAD, |
83 | gfs2_init_inode_once, NULL); | 83 | gfs2_init_inode_once); |
84 | if (!gfs2_inode_cachep) | 84 | if (!gfs2_inode_cachep) |
85 | goto fail; | 85 | goto fail; |
86 | 86 | ||
87 | gfs2_bufdata_cachep = kmem_cache_create("gfs2_bufdata", | 87 | gfs2_bufdata_cachep = kmem_cache_create("gfs2_bufdata", |
88 | sizeof(struct gfs2_bufdata), | 88 | sizeof(struct gfs2_bufdata), |
89 | 0, 0, NULL, NULL); | 89 | 0, 0, NULL); |
90 | if (!gfs2_bufdata_cachep) | 90 | if (!gfs2_bufdata_cachep) |
91 | goto fail; | 91 | goto fail; |
92 | 92 | ||