Home
last modified time | relevance | path

Searched refs:n_goal (Results 1 – 1 of 1) sorted by relevance

/mm/
Dswapfile.c1069 int get_swap_pages(int n_goal, swp_entry_t swp_entries[], int entry_size) in get_swap_pages() argument
1078 WARN_ON_ONCE(n_goal > 1 && size == SWAPFILE_CLUSTER); in get_swap_pages()
1088 n_goal = min3((long)n_goal, (long)SWAP_BATCH, avail_pgs); in get_swap_pages()
1090 atomic_long_sub(n_goal * size, &nr_swap_pages); in get_swap_pages()
1120 n_goal, swp_entries); in get_swap_pages()
1148 if (n_ret < n_goal) in get_swap_pages()
1149 atomic_long_add((long)(n_goal - n_ret) * size, in get_swap_pages()