Home
last modified time | relevance | path

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

/linux-3.4.99/mm/
Dksm.c172 static struct kmem_cache *mm_slot_cache; variable
215 mm_slot_cache = KSM_KMEM_CACHE(mm_slot, 0); in ksm_slab_init()
216 if (!mm_slot_cache) in ksm_slab_init()
231 kmem_cache_destroy(mm_slot_cache); in ksm_slab_free()
234 mm_slot_cache = NULL; in ksm_slab_free()
266 if (!mm_slot_cache) /* initialization failed */ in alloc_mm_slot()
268 return kmem_cache_zalloc(mm_slot_cache, GFP_KERNEL); in alloc_mm_slot()
273 kmem_cache_free(mm_slot_cache, mm_slot); in free_mm_slot()
Dhuge_memory.c66 static struct kmem_cache *mm_slot_cache __read_mostly;
143 if (unlikely(!mm_slot_cache || !mm_slots_hash)) { in start_khugepaged()
1532 mm_slot_cache = kmem_cache_create("khugepaged_mm_slot", in khugepaged_slab_init()
1535 if (!mm_slot_cache) in khugepaged_slab_init()
1543 kmem_cache_destroy(mm_slot_cache); in khugepaged_slab_free()
1544 mm_slot_cache = NULL; in khugepaged_slab_free()
1549 if (!mm_slot_cache) /* initialization failed */ in alloc_mm_slot()
1551 return kmem_cache_zalloc(mm_slot_cache, GFP_KERNEL); in alloc_mm_slot()
1556 kmem_cache_free(mm_slot_cache, mm_slot); in free_mm_slot()