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.c787 int n_ret = 0; in scan_swap_map_slots() local
860 if (n_ret) in scan_swap_map_slots()
890 if (!n_ret) in scan_swap_map_slots()
900 slots[n_ret++] = swp_entry(si->type, offset); in scan_swap_map_slots()
903 if ((n_ret == nr) || (offset >= si->highest_bit)) in scan_swap_map_slots()
910 if (n_ret) in scan_swap_map_slots()
950 return n_ret; in scan_swap_map_slots()
992 return n_ret; in scan_swap_map_slots()
1045 int n_ret = 0; in get_swap_pages() local
1088 n_ret = swap_alloc_cluster(si, swp_entries); in get_swap_pages()
[all …]