aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
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 /drivers/s390
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 'drivers/s390')
-rw-r--r--drivers/s390/block/dasd_devmap.c2
-rw-r--r--drivers/s390/scsi/zfcp_aux.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/s390/block/dasd_devmap.c b/drivers/s390/block/dasd_devmap.c
index 6a89cefe99bb..0c67258fb9ec 100644
--- a/drivers/s390/block/dasd_devmap.c
+++ b/drivers/s390/block/dasd_devmap.c
@@ -291,7 +291,7 @@ dasd_parse_keyword( char *parsestring ) {
291 dasd_page_cache = 291 dasd_page_cache =
292 kmem_cache_create("dasd_page_cache", PAGE_SIZE, 292 kmem_cache_create("dasd_page_cache", PAGE_SIZE,
293 PAGE_SIZE, SLAB_CACHE_DMA, 293 PAGE_SIZE, SLAB_CACHE_DMA,
294 NULL, NULL ); 294 NULL);
295 if (!dasd_page_cache) 295 if (!dasd_page_cache)
296 MESSAGE(KERN_WARNING, "%s", "Failed to create slab, " 296 MESSAGE(KERN_WARNING, "%s", "Failed to create slab, "
297 "fixed buffer mode disabled."); 297 "fixed buffer mode disabled.");
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c
index a1db95925138..9726261c367d 100644
--- a/drivers/s390/scsi/zfcp_aux.c
+++ b/drivers/s390/scsi/zfcp_aux.c
@@ -259,21 +259,21 @@ zfcp_module_init(void)
259 size = sizeof(struct zfcp_fsf_req_qtcb); 259 size = sizeof(struct zfcp_fsf_req_qtcb);
260 align = calc_alignment(size); 260 align = calc_alignment(size);
261 zfcp_data.fsf_req_qtcb_cache = 261 zfcp_data.fsf_req_qtcb_cache =
262 kmem_cache_create("zfcp_fsf", size, align, 0, NULL, NULL); 262 kmem_cache_create("zfcp_fsf", size, align, 0, NULL);
263 if (!zfcp_data.fsf_req_qtcb_cache) 263 if (!zfcp_data.fsf_req_qtcb_cache)
264 goto out; 264 goto out;
265 265
266 size = sizeof(struct fsf_status_read_buffer); 266 size = sizeof(struct fsf_status_read_buffer);
267 align = calc_alignment(size); 267 align = calc_alignment(size);
268 zfcp_data.sr_buffer_cache = 268 zfcp_data.sr_buffer_cache =
269 kmem_cache_create("zfcp_sr", size, align, 0, NULL, NULL); 269 kmem_cache_create("zfcp_sr", size, align, 0, NULL);
270 if (!zfcp_data.sr_buffer_cache) 270 if (!zfcp_data.sr_buffer_cache)
271 goto out_sr_cache; 271 goto out_sr_cache;
272 272
273 size = sizeof(struct zfcp_gid_pn_data); 273 size = sizeof(struct zfcp_gid_pn_data);
274 align = calc_alignment(size); 274 align = calc_alignment(size);
275 zfcp_data.gid_pn_cache = 275 zfcp_data.gid_pn_cache =
276 kmem_cache_create("zfcp_gid", size, align, 0, NULL, NULL); 276 kmem_cache_create("zfcp_gid", size, align, 0, NULL);
277 if (!zfcp_data.gid_pn_cache) 277 if (!zfcp_data.gid_pn_cache)
278 goto out_gid_cache; 278 goto out_gid_cache;
279 279