Lines Matching refs:n_ret
780 int n_ret = 0; in scan_swap_map_slots() local
853 if (n_ret) in scan_swap_map_slots()
883 if (!n_ret) in scan_swap_map_slots()
893 slots[n_ret++] = swp_entry(si->type, offset); in scan_swap_map_slots()
896 if ((n_ret == nr) || (offset >= si->highest_bit)) in scan_swap_map_slots()
903 if (n_ret) in scan_swap_map_slots()
943 return n_ret; in scan_swap_map_slots()
985 return n_ret; in scan_swap_map_slots()
1040 int n_ret; in scan_swap_map() local
1042 n_ret = scan_swap_map_slots(si, usage, 1, &entry); in scan_swap_map()
1044 if (n_ret) in scan_swap_map()
1056 int n_ret = 0; in get_swap_pages() local
1099 n_ret = swap_alloc_cluster(si, swp_entries); in get_swap_pages()
1101 n_ret = scan_swap_map_slots(si, SWAP_HAS_CACHE, in get_swap_pages()
1104 if (n_ret || size == SWAPFILE_CLUSTER) in get_swap_pages()
1129 if (n_ret < n_goal) in get_swap_pages()
1130 atomic_long_add((long)(n_goal - n_ret) * size, in get_swap_pages()
1133 return n_ret; in get_swap_pages()