Lines Matching refs:slots_ret
127 swp_entry_t *slots, *slots_ret; in alloc_swap_slot_cache() local
147 slots_ret = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache()
149 if (!slots_ret) { in alloc_swap_slot_cache()
156 if (cache->slots || cache->slots_ret) { in alloc_swap_slot_cache()
161 kvfree(slots_ret); in alloc_swap_slot_cache()
182 cache->slots_ret = slots_ret; in alloc_swap_slot_cache()
212 if ((type & SLOTS_CACHE_RET) && cache->slots_ret) { in drain_slots_cache_cpu()
214 swapcache_free_entries(cache->slots_ret, cache->n_ret); in drain_slots_cache_cpu()
216 if (free_slots && cache->slots_ret) { in drain_slots_cache_cpu()
217 slots = cache->slots_ret; in drain_slots_cache_cpu()
218 cache->slots_ret = NULL; in drain_slots_cache_cpu()
309 if (likely(use_swap_slot_cache && cache->slots_ret)) { in free_swap_slot()
312 if (!use_swap_slot_cache || !cache->slots_ret) { in free_swap_slot()
323 swapcache_free_entries(cache->slots_ret, cache->n_ret); in free_swap_slot()
326 cache->slots_ret[cache->n_ret++] = entry; in free_swap_slot()