Lines Matching defs:slots_ret
116 swp_entry_t *slots, *slots_ret;
128 slots_ret = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t),
130 if (!slots_ret) {
137 if (cache->slots || cache->slots_ret) {
142 kvfree(slots_ret);
157 * !cache->slots or !cache->slots_ret to know if it is safe to acquire
163 cache->slots_ret = slots_ret;
186 if ((type & SLOTS_CACHE_RET) && cache->slots_ret) {
188 swapcache_free_entries(cache->slots_ret, cache->n_ret);
190 if (free_slots && cache->slots_ret) {
191 slots = cache->slots_ret;
192 cache->slots_ret = NULL;
277 if (likely(use_swap_slot_cache && cache->slots_ret)) {
280 if (!use_swap_slot_cache || !cache->slots_ret) {
291 swapcache_free_entries(cache->slots_ret, cache->n_ret);
294 cache->slots_ret[cache->n_ret++] = entry;
321 * The alloc path here does not touch cache->slots_ret