Searched refs:n_goal (Results 1 – 1 of 1) sorted by relevance
1051 int get_swap_pages(int n_goal, swp_entry_t swp_entries[], int entry_size) in get_swap_pages() argument1060 WARN_ON_ONCE(n_goal > 1 && size == SWAPFILE_CLUSTER); in get_swap_pages()1070 n_goal = min3((long)n_goal, (long)SWAP_BATCH, avail_pgs); in get_swap_pages()1072 atomic_long_sub(n_goal * size, &nr_swap_pages); in get_swap_pages()1102 n_goal, swp_entries); 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()