Searched refs:n_goal (Results 1 – 1 of 1) sorted by relevance
1047 int get_swap_pages(int n_goal, swp_entry_t swp_entries[], int entry_size) in get_swap_pages() argument1056 WARN_ON_ONCE(n_goal > 1 && size == SWAPFILE_CLUSTER); in get_swap_pages()1066 n_goal = min3((long)n_goal, (long)SWAP_BATCH, avail_pgs); in get_swap_pages()1068 atomic_long_sub(n_goal * size, &nr_swap_pages); in get_swap_pages()1098 n_goal, swp_entries); in get_swap_pages()1125 if (n_ret < n_goal) in get_swap_pages()1126 atomic_long_add((long)(n_goal - n_ret) * size, in get_swap_pages()