Home
last modified time | relevance | path

Searched refs:slots (Results 1 – 3 of 3) sorted by relevance

/mm/
Dswap_slots.c118 swp_entry_t *slots, *slots_ret; in alloc_swap_slot_cache() local
125 slots = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache()
127 if (!slots) in alloc_swap_slot_cache()
133 kvfree(slots); in alloc_swap_slot_cache()
139 if (cache->slots || cache->slots_ret) in alloc_swap_slot_cache()
157 cache->slots = slots; in alloc_swap_slot_cache()
158 slots = NULL; in alloc_swap_slot_cache()
163 if (slots) in alloc_swap_slot_cache()
164 kvfree(slots); in alloc_swap_slot_cache()
174 swp_entry_t *slots = NULL; in drain_slots_cache_cpu() local
[all …]
Dz3fold.c118 struct z3fold_buddy_slots *slots; member
199 struct z3fold_buddy_slots *slots; in alloc_slots() local
201 slots = kmem_cache_alloc(pool->c_handle, in alloc_slots()
204 if (slots) { in alloc_slots()
205 memset(slots->slot, 0, sizeof(slots->slot)); in alloc_slots()
206 slots->pool = (unsigned long)pool; in alloc_slots()
209 return slots; in alloc_slots()
224 struct z3fold_buddy_slots *slots; in free_handle() local
233 slots = handle_to_slots(handle); in free_handle()
236 if (slots->slot[i]) { in free_handle()
[all …]
Dswapfile.c734 swp_entry_t slots[]) in scan_swap_map_slots() argument
852 slots[n_ret++] = swp_entry(si->type, offset); in scan_swap_map_slots()