Lines Matching refs:n_ret
808 int n_ret = 0; in scan_swap_map_slots() local
881 if (n_ret) in scan_swap_map_slots()
911 if (!n_ret) in scan_swap_map_slots()
921 slots[n_ret++] = swp_entry(si->type, offset); in scan_swap_map_slots()
924 if ((n_ret == nr) || (offset >= si->highest_bit)) in scan_swap_map_slots()
931 if (n_ret) in scan_swap_map_slots()
971 return n_ret; in scan_swap_map_slots()
999 return n_ret; in scan_swap_map_slots()
1052 int n_ret = 0; in get_swap_pages() local
1095 n_ret = swap_alloc_cluster(si, swp_entries); in get_swap_pages()
1097 n_ret = scan_swap_map_slots(si, SWAP_HAS_CACHE, in get_swap_pages()
1100 if (n_ret || size == SWAPFILE_CLUSTER) in get_swap_pages()
1124 if (n_ret < n_goal) in get_swap_pages()
1125 atomic_long_add((long)(n_goal - n_ret) * size, in get_swap_pages()
1128 return n_ret; in get_swap_pages()