Searched refs:mm_slot_cache (Results 1 – 2 of 2) sorted by relevance
84 static struct kmem_cache *mm_slot_cache __read_mostly;386 mm_slot_cache = kmem_cache_create("khugepaged_mm_slot", in khugepaged_init()389 if (!mm_slot_cache) in khugepaged_init()402 kmem_cache_destroy(mm_slot_cache); in khugepaged_destroy()407 if (!mm_slot_cache) /* initialization failed */ in alloc_mm_slot()409 return kmem_cache_zalloc(mm_slot_cache, GFP_KERNEL); in alloc_mm_slot()414 kmem_cache_free(mm_slot_cache, mm_slot); in free_mm_slot()
244 static struct kmem_cache *mm_slot_cache; variable317 mm_slot_cache = KSM_KMEM_CACHE(mm_slot, 0); in ksm_slab_init()318 if (!mm_slot_cache) in ksm_slab_init()333 kmem_cache_destroy(mm_slot_cache); in ksm_slab_free()336 mm_slot_cache = NULL; in ksm_slab_free()415 if (!mm_slot_cache) /* initialization failed */ in alloc_mm_slot()417 return kmem_cache_zalloc(mm_slot_cache, GFP_KERNEL); in alloc_mm_slot()422 kmem_cache_free(mm_slot_cache, mm_slot); in free_mm_slot()