Searched refs:mm_slot_cache (Results 1 – 2 of 2) sorted by relevance
206 static struct kmem_cache *mm_slot_cache; variable260 mm_slot_cache = KSM_KMEM_CACHE(mm_slot, 0); in ksm_slab_init()261 if (!mm_slot_cache) in ksm_slab_init()276 kmem_cache_destroy(mm_slot_cache); in ksm_slab_free()279 mm_slot_cache = NULL; in ksm_slab_free()312 if (!mm_slot_cache) /* initialization failed */ in alloc_mm_slot()314 return kmem_cache_zalloc(mm_slot_cache, GFP_KERNEL); in alloc_mm_slot()319 kmem_cache_free(mm_slot_cache, mm_slot); in free_mm_slot()
78 static struct kmem_cache *mm_slot_cache __read_mostly;2086 mm_slot_cache = kmem_cache_create("khugepaged_mm_slot", in khugepaged_slab_init()2089 if (!mm_slot_cache) in khugepaged_slab_init()2097 kmem_cache_destroy(mm_slot_cache); in khugepaged_slab_exit()2102 if (!mm_slot_cache) /* initialization failed */ in alloc_mm_slot()2104 return kmem_cache_zalloc(mm_slot_cache, GFP_KERNEL); in alloc_mm_slot()2109 kmem_cache_free(mm_slot_cache, mm_slot); in free_mm_slot()