Lines Matching refs:n_ret
804 int n_ret = 0; in scan_swap_map_slots() local
877 if (n_ret) in scan_swap_map_slots()
907 if (!n_ret) in scan_swap_map_slots()
917 slots[n_ret++] = swp_entry(si->type, offset); in scan_swap_map_slots()
920 if ((n_ret == nr) || (offset >= si->highest_bit)) in scan_swap_map_slots()
927 if (n_ret) in scan_swap_map_slots()
967 return n_ret; in scan_swap_map_slots()
995 return n_ret; in scan_swap_map_slots()
1048 int n_ret = 0; in get_swap_pages() local
1091 n_ret = swap_alloc_cluster(si, swp_entries); in get_swap_pages()
1093 n_ret = scan_swap_map_slots(si, SWAP_HAS_CACHE, in get_swap_pages()
1096 if (n_ret || size == SWAPFILE_CLUSTER) in get_swap_pages()
1121 if (n_ret < n_goal) in get_swap_pages()
1122 atomic_long_add((long)(n_goal - n_ret) * size, in get_swap_pages()
1125 return n_ret; in get_swap_pages()