aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs/super.c
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/ntfs/super.c
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/ntfs/super.c')
-rw-r--r--fs/ntfs/super.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/ntfs/super.c b/fs/ntfs/super.c
index 4566b9182551..90c4e3a29706 100644
--- a/fs/ntfs/super.c
+++ b/fs/ntfs/super.c
@@ -3143,7 +3143,7 @@ static int __init init_ntfs_fs(void)
3143 3143
3144 ntfs_index_ctx_cache = kmem_cache_create(ntfs_index_ctx_cache_name, 3144 ntfs_index_ctx_cache = kmem_cache_create(ntfs_index_ctx_cache_name,
3145 sizeof(ntfs_index_context), 0 /* offset */, 3145 sizeof(ntfs_index_context), 0 /* offset */,
3146 SLAB_HWCACHE_ALIGN, NULL /* ctor */, NULL /* dtor */); 3146 SLAB_HWCACHE_ALIGN, NULL /* ctor */);
3147 if (!ntfs_index_ctx_cache) { 3147 if (!ntfs_index_ctx_cache) {
3148 printk(KERN_CRIT "NTFS: Failed to create %s!\n", 3148 printk(KERN_CRIT "NTFS: Failed to create %s!\n",
3149 ntfs_index_ctx_cache_name); 3149 ntfs_index_ctx_cache_name);
@@ -3151,7 +3151,7 @@ static int __init init_ntfs_fs(void)
3151 } 3151 }
3152 ntfs_attr_ctx_cache = kmem_cache_create(ntfs_attr_ctx_cache_name, 3152 ntfs_attr_ctx_cache = kmem_cache_create(ntfs_attr_ctx_cache_name,
3153 sizeof(ntfs_attr_search_ctx), 0 /* offset */, 3153 sizeof(ntfs_attr_search_ctx), 0 /* offset */,
3154 SLAB_HWCACHE_ALIGN, NULL /* ctor */, NULL /* dtor */); 3154 SLAB_HWCACHE_ALIGN, NULL /* ctor */);
3155 if (!ntfs_attr_ctx_cache) { 3155 if (!ntfs_attr_ctx_cache) {
3156 printk(KERN_CRIT "NTFS: Failed to create %s!\n", 3156 printk(KERN_CRIT "NTFS: Failed to create %s!\n",
3157 ntfs_attr_ctx_cache_name); 3157 ntfs_attr_ctx_cache_name);
@@ -3160,7 +3160,7 @@ static int __init init_ntfs_fs(void)
3160 3160
3161 ntfs_name_cache = kmem_cache_create(ntfs_name_cache_name, 3161 ntfs_name_cache = kmem_cache_create(ntfs_name_cache_name,
3162 (NTFS_MAX_NAME_LEN+1) * sizeof(ntfschar), 0, 3162 (NTFS_MAX_NAME_LEN+1) * sizeof(ntfschar), 0,
3163 SLAB_HWCACHE_ALIGN, NULL, NULL); 3163 SLAB_HWCACHE_ALIGN, NULL);
3164 if (!ntfs_name_cache) { 3164 if (!ntfs_name_cache) {
3165 printk(KERN_CRIT "NTFS: Failed to create %s!\n", 3165 printk(KERN_CRIT "NTFS: Failed to create %s!\n",
3166 ntfs_name_cache_name); 3166 ntfs_name_cache_name);
@@ -3169,7 +3169,7 @@ static int __init init_ntfs_fs(void)
3169 3169
3170 ntfs_inode_cache = kmem_cache_create(ntfs_inode_cache_name, 3170 ntfs_inode_cache = kmem_cache_create(ntfs_inode_cache_name,
3171 sizeof(ntfs_inode), 0, 3171 sizeof(ntfs_inode), 0,
3172 SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, NULL, NULL); 3172 SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, NULL);
3173 if (!ntfs_inode_cache) { 3173 if (!ntfs_inode_cache) {
3174 printk(KERN_CRIT "NTFS: Failed to create %s!\n", 3174 printk(KERN_CRIT "NTFS: Failed to create %s!\n",
3175 ntfs_inode_cache_name); 3175 ntfs_inode_cache_name);
@@ -3179,7 +3179,7 @@ static int __init init_ntfs_fs(void)
3179 ntfs_big_inode_cache = kmem_cache_create(ntfs_big_inode_cache_name, 3179 ntfs_big_inode_cache = kmem_cache_create(ntfs_big_inode_cache_name,
3180 sizeof(big_ntfs_inode), 0, 3180 sizeof(big_ntfs_inode), 0,
3181 SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, 3181 SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD,
3182 ntfs_big_inode_init_once, NULL); 3182 ntfs_big_inode_init_once);
3183 if (!ntfs_big_inode_cache) { 3183 if (!ntfs_big_inode_cache) {
3184 printk(KERN_CRIT "NTFS: Failed to create %s!\n", 3184 printk(KERN_CRIT "NTFS: Failed to create %s!\n",
3185 ntfs_big_inode_cache_name); 3185 ntfs_big_inode_cache_name);