aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ehca/ehca_mrmw.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 /drivers/infiniband/hw/ehca/ehca_mrmw.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 'drivers/infiniband/hw/ehca/ehca_mrmw.c')
-rw-r--r--drivers/infiniband/hw/ehca/ehca_mrmw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_mrmw.c b/drivers/infiniband/hw/ehca/ehca_mrmw.c
index 6262c5462d50..9f4c9d46e8ef 100644
--- a/drivers/infiniband/hw/ehca/ehca_mrmw.c
+++ b/drivers/infiniband/hw/ehca/ehca_mrmw.c
@@ -1950,13 +1950,13 @@ int ehca_init_mrmw_cache(void)
1950 mr_cache = kmem_cache_create("ehca_cache_mr", 1950 mr_cache = kmem_cache_create("ehca_cache_mr",
1951 sizeof(struct ehca_mr), 0, 1951 sizeof(struct ehca_mr), 0,
1952 SLAB_HWCACHE_ALIGN, 1952 SLAB_HWCACHE_ALIGN,
1953 NULL, NULL); 1953 NULL);
1954 if (!mr_cache) 1954 if (!mr_cache)
1955 return -ENOMEM; 1955 return -ENOMEM;
1956 mw_cache = kmem_cache_create("ehca_cache_mw", 1956 mw_cache = kmem_cache_create("ehca_cache_mw",
1957 sizeof(struct ehca_mw), 0, 1957 sizeof(struct ehca_mw), 0,
1958 SLAB_HWCACHE_ALIGN, 1958 SLAB_HWCACHE_ALIGN,
1959 NULL, NULL); 1959 NULL);
1960 if (!mw_cache) { 1960 if (!mw_cache) {
1961 kmem_cache_destroy(mr_cache); 1961 kmem_cache_destroy(mr_cache);
1962 mr_cache = NULL; 1962 mr_cache = NULL;