Home
last modified time | relevance | path

Searched refs:mm_slot_cache (Results 1 – 2 of 2) sorted by relevance

/mm/
Dkhugepaged.c78 static struct kmem_cache *mm_slot_cache __read_mostly;
354 mm_slot_cache = kmem_cache_create("khugepaged_mm_slot", in khugepaged_init()
357 if (!mm_slot_cache) in khugepaged_init()
369 kmem_cache_destroy(mm_slot_cache); in khugepaged_destroy()
374 if (!mm_slot_cache) /* initialization failed */ in alloc_mm_slot()
376 return kmem_cache_zalloc(mm_slot_cache, GFP_KERNEL); in alloc_mm_slot()
381 kmem_cache_free(mm_slot_cache, mm_slot); in free_mm_slot()
Dksm.c243 static struct kmem_cache *mm_slot_cache; variable
316 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()