···752752 PTRS_PER_PMD*sizeof(pmd_t),753753 PTRS_PER_PMD*sizeof(pmd_t),754754 SLAB_PANIC,755755- pmd_ctor,756756- NULL);755755+ pmd_ctor);757756 if (!SHARED_KERNEL_PMD) {758757 /* If we're in PAE mode and have a non-shared759758 kernel pmd, then the pgd size must be a
···13881388 0,13891389 (SLAB_RECLAIM_ACCOUNT|SLAB_PANIC|13901390 SLAB_MEM_SPREAD),13911391- init_once,13921392- NULL);13911391+ init_once);13931392 register_shrinker(&icache_shrinker);1394139313951394 /* Hash may have been set up in inode_init_early */
···14841484 sizes[INDEX_AC].cs_size,14851485 ARCH_KMALLOC_MINALIGN,14861486 ARCH_KMALLOC_FLAGS|SLAB_PANIC,14871487- NULL, NULL);14871487+ NULL);1488148814891489 if (INDEX_AC != INDEX_L3) {14901490 sizes[INDEX_L3].cs_cachep =···14921492 sizes[INDEX_L3].cs_size,14931493 ARCH_KMALLOC_MINALIGN,14941494 ARCH_KMALLOC_FLAGS|SLAB_PANIC,14951495- NULL, NULL);14951495+ NULL);14961496 }1497149714981498 slab_early_init = 0;···15101510 sizes->cs_size,15111511 ARCH_KMALLOC_MINALIGN,15121512 ARCH_KMALLOC_FLAGS|SLAB_PANIC,15131513- NULL, NULL);15131513+ NULL);15141514 }15151515#ifdef CONFIG_ZONE_DMA15161516 sizes->cs_dmacachep = kmem_cache_create(···15191519 ARCH_KMALLOC_MINALIGN,15201520 ARCH_KMALLOC_FLAGS|SLAB_CACHE_DMA|15211521 SLAB_PANIC,15221522- NULL, NULL);15221522+ NULL);15231523#endif15241524 sizes++;15251525 names++;···21012101 * @align: The required alignment for the objects.21022102 * @flags: SLAB flags21032103 * @ctor: A constructor for the objects.21042104- * @dtor: A destructor for the objects (not implemented anymore).21052104 *21062105 * Returns a ptr to the cache on success, NULL on failure.21072106 * Cannot be called within a int, but can be interrupted.21082108- * The @ctor is run when new pages are allocated by the cache21092109- * and the @dtor is run before the pages are handed back.21072107+ * The @ctor is run when new pages are allocated by the cache.21102108 *21112109 * @name must be valid until the cache is destroyed. This implies that21122110 * the module calling this has to destroy the cache before getting unloaded.···21242126struct kmem_cache *21252127kmem_cache_create (const char *name, size_t size, size_t align,21262128 unsigned long flags,21272127- void (*ctor)(void*, struct kmem_cache *, unsigned long),21282128- void (*dtor)(void*, struct kmem_cache *, unsigned long))21292129+ void (*ctor)(void*, struct kmem_cache *, unsigned long))21292130{21302131 size_t left_over, slab_size, ralign;21312132 struct kmem_cache *cachep = NULL, *pc;···21332136 * Sanity checks... these are all serious usage bugs.21342137 */21352138 if (!name || in_interrupt() || (size < BYTES_PER_WORD) ||21362136- size > KMALLOC_MAX_SIZE || dtor) {21392139+ size > KMALLOC_MAX_SIZE) {21372140 printk(KERN_ERR "%s: Early error in slab %s\n", __FUNCTION__,21382141 name);21392142 BUG();
···123123 peer_cachep = kmem_cache_create("inet_peer_cache",124124 sizeof(struct inet_peer),125125 0, SLAB_HWCACHE_ALIGN|SLAB_PANIC,126126- NULL, NULL);126126+ NULL);127127128128 /* All the timers, started at system startup tend129129 to synchronize. Perturb it a bit.
···24302430 tcp_hashinfo.bind_bucket_cachep =24312431 kmem_cache_create("tcp_bind_bucket",24322432 sizeof(struct inet_bind_bucket), 0,24332433- SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL, NULL);24332433+ SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);2434243424352435 /* Size and allocate the main established and bind bucket24362436 * hash tables.
···10011001{10021002 /* allocate a slab in which we can store keys */10031003 key_jar = kmem_cache_create("key_jar", sizeof(struct key),10041004- 0, SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL, NULL);10041004+ 0, SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);1005100510061006 /* add the special key types */10071007 list_add_tail(&key_type_keyring.link, &key_types_list);