Lines Matching defs:slots_ret
117 swp_entry_t *slots, *slots_ret;
129 slots_ret = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t),
131 if (!slots_ret) {
138 if (cache->slots || cache->slots_ret) {
143 kvfree(slots_ret);
158 * !cache->slots or !cache->slots_ret to know if it is safe to acquire
164 cache->slots_ret = slots_ret;
187 if ((type & SLOTS_CACHE_RET) && cache->slots_ret) {
189 swapcache_free_entries(cache->slots_ret, cache->n_ret);
191 if (free_slots && cache->slots_ret) {
192 slots = cache->slots_ret;
193 cache->slots_ret = NULL;
279 if (likely(use_swap_slot_cache && cache->slots_ret)) {
282 if (!use_swap_slot_cache || !cache->slots_ret) {
293 swapcache_free_entries(cache->slots_ret, cache->n_ret);
296 cache->slots_ret[cache->n_ret++] = entry;
325 * The alloc path here does not touch cache->slots_ret