Home
last modified time | relevance | path

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

/mm/
Dswap_slots.c127 swp_entry_t *slots, *slots_ret; in alloc_swap_slot_cache() local
142 slots = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache()
144 if (!slots) in alloc_swap_slot_cache()
150 kvfree(slots); in alloc_swap_slot_cache()
156 if (cache->slots || cache->slots_ret) { in alloc_swap_slot_cache()
160 kvfree(slots); in alloc_swap_slot_cache()
181 cache->slots = slots; in alloc_swap_slot_cache()
191 swp_entry_t *slots = NULL; in drain_slots_cache_cpu() local
201 if ((type & SLOTS_CACHE) && cache->slots) { in drain_slots_cache_cpu()
203 swapcache_free_entries(cache->slots + cache->cur, cache->nr); in drain_slots_cache_cpu()
[all …]
Dz3fold.c120 struct z3fold_buddy_slots *slots; member
213 struct z3fold_buddy_slots *slots; in alloc_slots() local
215 slots = kmem_cache_zalloc(pool->c_handle, in alloc_slots()
218 if (slots) { in alloc_slots()
220 kmemleak_not_leak(slots); in alloc_slots()
221 slots->pool = (unsigned long)pool; in alloc_slots()
222 rwlock_init(&slots->lock); in alloc_slots()
225 return slots; in alloc_slots()
260 struct z3fold_buddy_slots *slots; in __get_z3fold_header() local
265 slots = handle_to_slots(handle); in __get_z3fold_header()
[all …]
Dswapfile.c789 swp_entry_t slots[]) in scan_swap_map_slots() argument
909 slots[n_ret++] = swp_entry(si->type, offset); in scan_swap_map_slots()