Lines Matching refs:n_ret
1052 int n_ret = 0; in cluster_alloc_swap() local
1058 while (n_ret < nr) { in cluster_alloc_swap()
1063 slots[n_ret++] = swp_entry(si->type, offset); in cluster_alloc_swap()
1068 return n_ret; in cluster_alloc_swap()
1080 int n_ret = 0; in scan_swap_map_slots() local
1180 if (!n_ret) in scan_swap_map_slots()
1188 slots[n_ret++] = swp_entry(si->type, offset); in scan_swap_map_slots()
1191 if ((n_ret == nr) || (offset >= si->highest_bit)) in scan_swap_map_slots()
1198 if (n_ret) in scan_swap_map_slots()
1235 return n_ret; in scan_swap_map_slots()
1264 return n_ret; in scan_swap_map_slots()
1273 int n_ret = 0; in get_swap_pages() local
1311 n_ret = scan_swap_map_slots(si, SWAP_HAS_CACHE, in get_swap_pages()
1314 if (n_ret || size > 1) in get_swap_pages()
1338 if (n_ret < n_goal) in get_swap_pages()
1339 atomic_long_add((long)(n_goal - n_ret) * size, in get_swap_pages()
1342 return n_ret; in get_swap_pages()