Home
last modified time | relevance | path

Searched refs:n_ret (Results 1 – 3 of 3) sorted by relevance

/linux/mm/
H A Dswap_slots.c154 cache->n_ret = 0; in alloc_swap_slot_cache()
188 swapcache_free_entries(cache->slots_ret, cache->n_ret); in drain_slots_cache_cpu()
189 cache->n_ret = 0; in drain_slots_cache_cpu()
287 if (cache->n_ret >= SWAP_SLOTS_CACHE_SIZE) { in free_swap_slot()
294 swapcache_free_entries(cache->slots_ret, cache->n_ret); in free_swap_slot()
295 cache->n_ret = 0; in free_swap_slot()
297 cache->slots_ret[cache->n_ret++] = entry; in free_swap_slot()
H A Dswapfile.c1040 int n_ret = 0; in cluster_alloc_swap() local
1044 while (n_ret < nr) { in cluster_alloc_swap()
1049 slots[n_ret++] = swp_entry(si->type, offset); in cluster_alloc_swap()
1052 return n_ret; in cluster_alloc_swap()
1064 int n_ret = 0; in scan_swap_map_slots() local
1164 if (!n_ret) in scan_swap_map_slots()
1172 slots[n_ret++] = swp_entry(si->type, offset); in scan_swap_map_slots()
1175 if ((n_ret == nr) || (offset >= si->highest_bit)) in scan_swap_map_slots()
1182 if (n_ret) in scan_swap_map_slots()
1219 return n_ret; in scan_swap_map_slots()
[all …]
/linux/include/linux/
H A Dswap_slots.h21 int n_ret; member