Home
last modified time | relevance | path

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

/mm/
Dswap_slots.c173 cache->n_ret = 0; in alloc_swap_slot_cache()
214 swapcache_free_entries(cache->slots_ret, cache->n_ret); in drain_slots_cache_cpu()
215 cache->n_ret = 0; in drain_slots_cache_cpu()
316 if (cache->n_ret >= SWAP_SLOTS_CACHE_SIZE) { in free_swap_slot()
323 swapcache_free_entries(cache->slots_ret, cache->n_ret); in free_swap_slot()
324 cache->n_ret = 0; in free_swap_slot()
326 cache->slots_ret[cache->n_ret++] = entry; in free_swap_slot()
Dswapfile.c796 int n_ret = 0; in scan_swap_map_slots() local
869 if (n_ret) in scan_swap_map_slots()
899 if (!n_ret) in scan_swap_map_slots()
909 slots[n_ret++] = swp_entry(si->type, offset); in scan_swap_map_slots()
912 if ((n_ret == nr) || (offset >= si->highest_bit)) in scan_swap_map_slots()
919 if (n_ret) in scan_swap_map_slots()
959 return n_ret; in scan_swap_map_slots()
1001 return n_ret; in scan_swap_map_slots()
1058 int n_ret; in scan_swap_map() local
1060 n_ret = scan_swap_map_slots(si, usage, 1, &entry); in scan_swap_map()
[all …]