Home
last modified time | relevance | path

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

/fs/ext4/
Dextents_status.c152 static int es_reclaim_extents(struct ext4_inode_info *ei, int *nr_to_scan);
153 static int __es_shrink(struct ext4_sb_info *sbi, int nr_to_scan,
1544 static int __es_shrink(struct ext4_sb_info *sbi, int nr_to_scan, in __es_shrink() argument
1591 nr_shrunk += es_reclaim_extents(ei, &nr_to_scan); in __es_shrink()
1594 if (nr_to_scan <= 0) in __es_shrink()
1610 nr_shrunk = es_reclaim_extents(locked_ei, &nr_to_scan); in __es_shrink()
1640 trace_ext4_es_shrink_count(sbi->s_sb, sc->nr_to_scan, nr); in ext4_es_count()
1649 int nr_to_scan = sc->nr_to_scan; in ext4_es_scan() local
1653 trace_ext4_es_shrink_scan_enter(sbi->s_sb, nr_to_scan, ret); in ext4_es_scan()
1655 nr_shrunk = __es_shrink(sbi, nr_to_scan, NULL); in ext4_es_scan()
[all …]
/fs/
Dmbcache.c48 unsigned long nr_to_scan);
341 unsigned long nr_to_scan) in mb_cache_shrink() argument
347 while (nr_to_scan-- && !list_empty(&cache->c_list)) { in mb_cache_shrink()
375 return mb_cache_shrink(cache, sc->nr_to_scan); in mb_cache_scan()
Dsuper.c93 dentries = mult_frac(sc->nr_to_scan, dentries, total_objects); in super_cache_scan()
94 inodes = mult_frac(sc->nr_to_scan, inodes, total_objects); in super_cache_scan()
95 fs_objects = mult_frac(sc->nr_to_scan, fs_objects, total_objects); in super_cache_scan()
104 sc->nr_to_scan = dentries + 1; in super_cache_scan()
106 sc->nr_to_scan = inodes + 1; in super_cache_scan()
110 sc->nr_to_scan = fs_objects + 1; in super_cache_scan()
/fs/xfs/
Dxfs_icache.c1123 int *nr_to_scan) in xfs_reclaim_inodes_ag() argument
1192 *nr_to_scan -= XFS_LOOKUP_BATCH; in xfs_reclaim_inodes_ag()
1194 } while (nr_found && !done && *nr_to_scan > 0); in xfs_reclaim_inodes_ag()
1207 int nr_to_scan = INT_MAX; in xfs_reclaim_inodes() local
1211 xfs_reclaim_inodes_ag(mp, &nr_to_scan); in xfs_reclaim_inodes()
1225 int nr_to_scan) in xfs_reclaim_inodes_nr() argument
1231 xfs_reclaim_inodes_ag(mp, &nr_to_scan); in xfs_reclaim_inodes_nr()
1341 int nr_to_scan = INT_MAX; in xfs_reclaim_worker() local
1343 xfs_reclaim_inodes_ag(mp, &nr_to_scan); in xfs_reclaim_worker()
Dxfs_icache.h53 long xfs_reclaim_inodes_nr(struct xfs_mount *mp, int nr_to_scan);
Dxfs_super.c1109 return xfs_reclaim_inodes_nr(XFS_M(sb), sc->nr_to_scan); in xfs_fs_free_cached_objects()
/fs/nfs/
Ddir.c2356 nfs_do_access_cache_scan(unsigned int nr_to_scan) in nfs_do_access_cache_scan() argument
2367 if (nr_to_scan-- == 0) in nfs_do_access_cache_scan()
2398 int nr_to_scan = sc->nr_to_scan; in nfs_access_cache_scan() local
2403 return nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_scan()
2418 unsigned int nr_to_scan; in nfs_access_cache_enforce_limit() local
2422 nr_to_scan = 100; in nfs_access_cache_enforce_limit()
2424 if (diff < nr_to_scan) in nfs_access_cache_enforce_limit()
2425 nr_to_scan = diff; in nfs_access_cache_enforce_limit()
2426 nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_enforce_limit()
/fs/ceph/
Ddir.c1353 unsigned long nr_to_scan; member
1372 if (!lwc->nr_to_scan) in __dentry_leases_walk()
1374 --lwc->nr_to_scan; in __dentry_leases_walk()
1500 lwc.nr_to_scan = CEPH_CAPS_PER_RELEASE * 2; in ceph_trim_dentries()
1502 if (!lwc.nr_to_scan) /* more invalid leases */ in ceph_trim_dentries()
1505 if (lwc.nr_to_scan < CEPH_CAPS_PER_RELEASE) in ceph_trim_dentries()
1506 lwc.nr_to_scan = CEPH_CAPS_PER_RELEASE; in ceph_trim_dentries()
1512 if (!lwc.nr_to_scan) /* more to check */ in ceph_trim_dentries()
/fs/f2fs/
Dshrinker.c82 unsigned long nr = sc->nr_to_scan; in f2fs_shrink_scan()
/fs/ubifs/
Dshrinker.c282 unsigned long nr = sc->nr_to_scan; in ubifs_shrink_scan()
/fs/erofs/
Dutils.c220 unsigned long nr = sc->nr_to_scan; in erofs_shrink_scan()
/fs/quota/
Ddquot.c788 while (!list_empty(&free_dquots) && sc->nr_to_scan) { in dqcache_shrink_scan()
794 sc->nr_to_scan--; in dqcache_shrink_scan()
/fs/gfs2/
Dglock.c1852 return gfs2_scan_glock_lru(sc->nr_to_scan); in gfs2_glock_shrink_scan()