Home
last modified time | relevance | path

Searched refs:slots_ret (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/mm/
H A Dswap_slots.c117 swp_entry_t *slots, *slots_ret; in alloc_swap_slot_cache() local
129 slots_ret = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache()
131 if (!slots_ret) { in alloc_swap_slot_cache()
138 if (cache->slots || cache->slots_ret) { in alloc_swap_slot_cache()
143 kvfree(slots_ret); in alloc_swap_slot_cache()
158 * !cache->slots or !cache->slots_ret to know if it is safe to acquire in alloc_swap_slot_cache()
164 cache->slots_ret = slots_ret; in alloc_swap_slot_cache()
187 if ((type & SLOTS_CACHE_RET) && cache->slots_ret) { in drain_slots_cache_cpu()
189 swapcache_free_entries(cache->slots_ret, cach in drain_slots_cache_cpu()
[all...]
/kernel/linux/linux-6.6/mm/
H A Dswap_slots.c116 swp_entry_t *slots, *slots_ret; in alloc_swap_slot_cache() local
128 slots_ret = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache()
130 if (!slots_ret) { in alloc_swap_slot_cache()
137 if (cache->slots || cache->slots_ret) { in alloc_swap_slot_cache()
142 kvfree(slots_ret); in alloc_swap_slot_cache()
157 * !cache->slots or !cache->slots_ret to know if it is safe to acquire in alloc_swap_slot_cache()
163 cache->slots_ret = slots_ret; in alloc_swap_slot_cache()
186 if ((type & SLOTS_CACHE_RET) && cache->slots_ret) { in drain_slots_cache_cpu()
188 swapcache_free_entries(cache->slots_ret, cach in drain_slots_cache_cpu()
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dswap_slots.h19 spinlock_t free_lock; /* protects slots_ret, n_ret */
20 swp_entry_t *slots_ret; member
/kernel/linux/linux-6.6/include/linux/
H A Dswap_slots.h19 spinlock_t free_lock; /* protects slots_ret, n_ret */
20 swp_entry_t *slots_ret; member

Completed in 2 milliseconds