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 /arch/powerpc | |
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 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/rtas_flash.c | 2 | ||||
-rw-r--r-- | arch/powerpc/mm/hugetlbpage.c | 2 | ||||
-rw-r--r-- | arch/powerpc/mm/init_64.c | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 2 |
4 files changed, 4 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/rtas_flash.c b/arch/powerpc/kernel/rtas_flash.c index f72118c0844f..62b7bf2f3eab 100644 --- a/arch/powerpc/kernel/rtas_flash.c +++ b/arch/powerpc/kernel/rtas_flash.c | |||
@@ -804,7 +804,7 @@ int __init rtas_flash_init(void) | |||
804 | 804 | ||
805 | flash_block_cache = kmem_cache_create("rtas_flash_cache", | 805 | flash_block_cache = kmem_cache_create("rtas_flash_cache", |
806 | RTAS_BLK_SIZE, RTAS_BLK_SIZE, 0, | 806 | RTAS_BLK_SIZE, RTAS_BLK_SIZE, 0, |
807 | rtas_block_ctor, NULL); | 807 | rtas_block_ctor); |
808 | if (!flash_block_cache) { | 808 | if (!flash_block_cache) { |
809 | printk(KERN_ERR "%s: failed to create block cache\n", | 809 | printk(KERN_ERR "%s: failed to create block cache\n", |
810 | __FUNCTION__); | 810 | __FUNCTION__); |
diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c index 92a1b16fb7e3..4835f73af304 100644 --- a/arch/powerpc/mm/hugetlbpage.c +++ b/arch/powerpc/mm/hugetlbpage.c | |||
@@ -542,7 +542,7 @@ static int __init hugetlbpage_init(void) | |||
542 | HUGEPTE_TABLE_SIZE, | 542 | HUGEPTE_TABLE_SIZE, |
543 | HUGEPTE_TABLE_SIZE, | 543 | HUGEPTE_TABLE_SIZE, |
544 | 0, | 544 | 0, |
545 | zero_ctor, NULL); | 545 | zero_ctor); |
546 | if (! huge_pgtable_cache) | 546 | if (! huge_pgtable_cache) |
547 | panic("hugetlbpage_init(): could not create hugepte cache\n"); | 547 | panic("hugetlbpage_init(): could not create hugepte cache\n"); |
548 | 548 | ||
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index 1d6edf724c85..9f27bb56a61d 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c | |||
@@ -178,7 +178,6 @@ void pgtable_cache_init(void) | |||
178 | pgtable_cache[i] = kmem_cache_create(name, | 178 | pgtable_cache[i] = kmem_cache_create(name, |
179 | size, size, | 179 | size, size, |
180 | SLAB_PANIC, | 180 | SLAB_PANIC, |
181 | zero_ctor, | 181 | zero_ctor); |
182 | NULL); | ||
183 | } | 182 | } |
184 | } | 183 | } |
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index f37460e5bfd2..7eb4d6cbcb74 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c | |||
@@ -654,7 +654,7 @@ static int __init spufs_init(void) | |||
654 | ret = -ENOMEM; | 654 | ret = -ENOMEM; |
655 | spufs_inode_cache = kmem_cache_create("spufs_inode_cache", | 655 | spufs_inode_cache = kmem_cache_create("spufs_inode_cache", |
656 | sizeof(struct spufs_inode_info), 0, | 656 | sizeof(struct spufs_inode_info), 0, |
657 | SLAB_HWCACHE_ALIGN, spufs_init_once, NULL); | 657 | SLAB_HWCACHE_ALIGN, spufs_init_once); |
658 | 658 | ||
659 | if (!spufs_inode_cache) | 659 | if (!spufs_inode_cache) |
660 | goto out; | 660 | goto out; |