Lines Matching refs:nr_to_scan
150 static int es_reclaim_extents(struct ext4_inode_info *ei, int *nr_to_scan);
151 static int __es_shrink(struct ext4_sb_info *sbi, int nr_to_scan,
1445 static int __es_shrink(struct ext4_sb_info *sbi, int nr_to_scan, in __es_shrink() argument
1492 nr_shrunk += es_reclaim_extents(ei, &nr_to_scan); in __es_shrink()
1495 if (nr_to_scan <= 0) in __es_shrink()
1511 nr_shrunk = es_reclaim_extents(locked_ei, &nr_to_scan); in __es_shrink()
1541 trace_ext4_es_shrink_count(sbi->s_sb, sc->nr_to_scan, nr); in ext4_es_count()
1550 int nr_to_scan = sc->nr_to_scan; in ext4_es_scan() local
1554 trace_ext4_es_shrink_scan_enter(sbi->s_sb, nr_to_scan, ret); in ext4_es_scan()
1556 if (!nr_to_scan) in ext4_es_scan()
1559 nr_shrunk = __es_shrink(sbi, nr_to_scan, NULL); in ext4_es_scan()
1672 int *nr_to_scan, int *nr_shrunk) in es_do_reclaim_extents() argument
1683 while (*nr_to_scan > 0) { in es_do_reclaim_extents()
1689 (*nr_to_scan)--; in es_do_reclaim_extents()
1717 static int es_reclaim_extents(struct ext4_inode_info *ei, int *nr_to_scan) in es_reclaim_extents() argument
1732 if (!es_do_reclaim_extents(ei, EXT_MAX_BLOCKS, nr_to_scan, &nr_shrunk) && in es_reclaim_extents()
1734 es_do_reclaim_extents(ei, start - 1, nr_to_scan, &nr_shrunk); in es_reclaim_extents()