Searched refs:mm_slot_cache (Results 1 – 2 of 2) sorted by relevance
81 static struct kmem_cache *mm_slot_cache __read_mostly;357 mm_slot_cache = kmem_cache_create("khugepaged_mm_slot", in khugepaged_init()360 if (!mm_slot_cache) in khugepaged_init()372 kmem_cache_destroy(mm_slot_cache); in khugepaged_destroy()377 if (!mm_slot_cache) /* initialization failed */ in alloc_mm_slot()379 return kmem_cache_zalloc(mm_slot_cache, GFP_KERNEL); in alloc_mm_slot()384 kmem_cache_free(mm_slot_cache, mm_slot); in free_mm_slot()
243 static struct kmem_cache *mm_slot_cache; variable316 mm_slot_cache = KSM_KMEM_CACHE(mm_slot, 0); in ksm_slab_init()317 if (!mm_slot_cache) in ksm_slab_init()332 kmem_cache_destroy(mm_slot_cache); in ksm_slab_free()335 mm_slot_cache = NULL; in ksm_slab_free()414 if (!mm_slot_cache) /* initialization failed */ in alloc_mm_slot()416 return kmem_cache_zalloc(mm_slot_cache, GFP_KERNEL); in alloc_mm_slot()421 kmem_cache_free(mm_slot_cache, mm_slot); in free_mm_slot()