Lines Matching refs:slots_ret
118 swp_entry_t *slots, *slots_ret; in alloc_swap_slot_cache() local
130 slots_ret = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache()
132 if (!slots_ret) { in alloc_swap_slot_cache()
139 if (cache->slots || cache->slots_ret) in alloc_swap_slot_cache()
159 cache->slots_ret = slots_ret; in alloc_swap_slot_cache()
160 slots_ret = NULL; in alloc_swap_slot_cache()
165 if (slots_ret) in alloc_swap_slot_cache()
166 kvfree(slots_ret); in alloc_swap_slot_cache()
188 if ((type & SLOTS_CACHE_RET) && cache->slots_ret) { in drain_slots_cache_cpu()
190 swapcache_free_entries(cache->slots_ret, cache->n_ret); in drain_slots_cache_cpu()
192 if (free_slots && cache->slots_ret) { in drain_slots_cache_cpu()
193 slots = cache->slots_ret; in drain_slots_cache_cpu()
194 cache->slots_ret = NULL; in drain_slots_cache_cpu()
283 if (likely(use_swap_slot_cache && cache->slots_ret)) { in free_swap_slot()
286 if (!use_swap_slot_cache || !cache->slots_ret) { in free_swap_slot()
297 swapcache_free_entries(cache->slots_ret, cache->n_ret); in free_swap_slot()
300 cache->slots_ret[cache->n_ret++] = entry; in free_swap_slot()