Home
last modified time | relevance | path

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

/mm/
Dswap_slots.c153 cache->n_ret = 0; in alloc_swap_slot_cache()
187 swapcache_free_entries(cache->slots_ret, cache->n_ret); in drain_slots_cache_cpu()
188 cache->n_ret = 0; in drain_slots_cache_cpu()
283 if (cache->n_ret >= SWAP_SLOTS_CACHE_SIZE) { in free_swap_slot()
290 swapcache_free_entries(cache->slots_ret, cache->n_ret); in free_swap_slot()
291 cache->n_ret = 0; in free_swap_slot()
293 cache->slots_ret[cache->n_ret++] = entry; in free_swap_slot()
Dswapfile.c788 int n_ret = 0; in scan_swap_map_slots() local
861 if (n_ret) in scan_swap_map_slots()
891 if (!n_ret) in scan_swap_map_slots()
901 slots[n_ret++] = swp_entry(si->type, offset); in scan_swap_map_slots()
904 if ((n_ret == nr) || (offset >= si->highest_bit)) in scan_swap_map_slots()
911 if (n_ret) in scan_swap_map_slots()
951 return n_ret; in scan_swap_map_slots()
993 return n_ret; in scan_swap_map_slots()
1046 int n_ret = 0; in get_swap_pages() local
1089 n_ret = swap_alloc_cluster(si, swp_entries); in get_swap_pages()
[all …]