Lines Matching refs:nr_to_scan
1649 static unsigned long isolate_lru_folios(unsigned long nr_to_scan, in isolate_lru_folios() argument
1664 while (scan < nr_to_scan && !list_empty(src)) { in isolate_lru_folios()
1735 trace_mm_vmscan_lru_isolate(sc->reclaim_idx, sc->order, nr_to_scan, in isolate_lru_folios()
1914 static unsigned long shrink_inactive_list(unsigned long nr_to_scan, in shrink_inactive_list() argument
1945 nr_taken = isolate_lru_folios(nr_to_scan, lruvec, &folio_list, in shrink_inactive_list()
2034 static void shrink_active_list(unsigned long nr_to_scan, in shrink_active_list() argument
2054 nr_taken = isolate_lru_folios(nr_to_scan, lruvec, &l_hold, in shrink_active_list()
2187 static unsigned long shrink_list(enum lru_list lru, unsigned long nr_to_scan, in shrink_list() argument
2192 shrink_active_list(nr_to_scan, lruvec, sc, lru); in shrink_list()
2198 return shrink_inactive_list(nr_to_scan, lruvec, sc, lru); in shrink_list()
4657 bool can_swap, unsigned long *nr_to_scan) in should_run_aging() argument
4668 *nr_to_scan = 0; in should_run_aging()
4691 *nr_to_scan = total; in should_run_aging()
4724 unsigned long nr_to_scan; in get_nr_to_scan() local
4731 success = should_run_aging(lruvec, max_seq, can_swap, &nr_to_scan); in get_nr_to_scan()
4734 if (nr_to_scan && !mem_cgroup_online(memcg)) in get_nr_to_scan()
4735 return nr_to_scan; in get_nr_to_scan()
4739 return nr_to_scan >> sc->priority; in get_nr_to_scan()
4778 long nr_to_scan; in try_to_shrink_lruvec() local
4785 nr_to_scan = get_nr_to_scan(lruvec, sc, swappiness); in try_to_shrink_lruvec()
4786 if (nr_to_scan <= 0) in try_to_shrink_lruvec()
4794 if (scanned >= nr_to_scan) in try_to_shrink_lruvec()
4811 return nr_to_scan < 0; in try_to_shrink_lruvec()
5685 unsigned long nr_to_scan; in shrink_lruvec() local
5724 nr_to_scan = min(nr[lru], SWAP_CLUSTER_MAX); in shrink_lruvec()
5725 nr[lru] -= nr_to_scan; in shrink_lruvec()
5727 nr_reclaimed += shrink_list(lru, nr_to_scan, in shrink_lruvec()