aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm
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/kvm
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/kvm')
-rw-r--r--drivers/kvm/mmu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c
index b297a6b111ac..1199d3f32ac3 100644
--- a/drivers/kvm/mmu.c
+++ b/drivers/kvm/mmu.c
@@ -1332,24 +1332,24 @@ int kvm_mmu_module_init(void)
1332{ 1332{
1333 pte_chain_cache = kmem_cache_create("kvm_pte_chain", 1333 pte_chain_cache = kmem_cache_create("kvm_pte_chain",
1334 sizeof(struct kvm_pte_chain), 1334 sizeof(struct kvm_pte_chain),
1335 0, 0, NULL, NULL); 1335 0, 0, NULL);
1336 if (!pte_chain_cache) 1336 if (!pte_chain_cache)
1337 goto nomem; 1337 goto nomem;
1338 rmap_desc_cache = kmem_cache_create("kvm_rmap_desc", 1338 rmap_desc_cache = kmem_cache_create("kvm_rmap_desc",
1339 sizeof(struct kvm_rmap_desc), 1339 sizeof(struct kvm_rmap_desc),
1340 0, 0, NULL, NULL); 1340 0, 0, NULL);
1341 if (!rmap_desc_cache) 1341 if (!rmap_desc_cache)
1342 goto nomem; 1342 goto nomem;
1343 1343
1344 mmu_page_cache = kmem_cache_create("kvm_mmu_page", 1344 mmu_page_cache = kmem_cache_create("kvm_mmu_page",
1345 PAGE_SIZE, 1345 PAGE_SIZE,
1346 PAGE_SIZE, 0, NULL, NULL); 1346 PAGE_SIZE, 0, NULL);
1347 if (!mmu_page_cache) 1347 if (!mmu_page_cache)
1348 goto nomem; 1348 goto nomem;
1349 1349
1350 mmu_page_header_cache = kmem_cache_create("kvm_mmu_page_header", 1350 mmu_page_header_cache = kmem_cache_create("kvm_mmu_page_header",
1351 sizeof(struct kvm_mmu_page), 1351 sizeof(struct kvm_mmu_page),
1352 0, 0, NULL, NULL); 1352 0, 0, NULL);
1353 if (!mmu_page_header_cache) 1353 if (!mmu_page_header_cache)
1354 goto nomem; 1354 goto nomem;
1355 1355