Searched refs:n_goal (Results 1 – 1 of 1) sorted by relevance
1040 int get_swap_pages(int n_goal, swp_entry_t swp_entries[], int entry_size) in get_swap_pages() argument1049 WARN_ON_ONCE(n_goal > 1 && size == SWAPFILE_CLUSTER); in get_swap_pages()1059 n_goal = min3((long)n_goal, (long)SWAP_BATCH, avail_pgs); in get_swap_pages()1061 atomic_long_sub(n_goal * size, &nr_swap_pages); in get_swap_pages()1091 n_goal, swp_entries); in get_swap_pages()1119 if (n_ret < n_goal) in get_swap_pages()1120 atomic_long_add((long)(n_goal - n_ret) * size, in get_swap_pages()