Home
last modified time | relevance | path

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

/fs/ext4/
Dextents_status.c150 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()
[all …]
/fs/
Dmbcache.c48 unsigned long nr_to_scan);
281 unsigned long nr_to_scan) in mb_cache_shrink() argument
288 while (nr_to_scan-- && !list_empty(&cache->c_list)) { in mb_cache_shrink()
325 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.c1241 int *nr_to_scan) in xfs_reclaim_inodes_ag() argument
1329 *nr_to_scan -= XFS_LOOKUP_BATCH; in xfs_reclaim_inodes_ag()
1333 } while (nr_found && !done && *nr_to_scan > 0); in xfs_reclaim_inodes_ag()
1350 if (skipped && (flags & SYNC_WAIT) && *nr_to_scan > 0) { in xfs_reclaim_inodes_ag()
1362 int nr_to_scan = INT_MAX; in xfs_reclaim_inodes() local
1364 return xfs_reclaim_inodes_ag(mp, mode, &nr_to_scan); in xfs_reclaim_inodes()
1379 int nr_to_scan) in xfs_reclaim_inodes_nr() argument
1385 return xfs_reclaim_inodes_ag(mp, SYNC_TRYLOCK | SYNC_WAIT, &nr_to_scan); in xfs_reclaim_inodes_nr()
Dxfs_icache.h56 long xfs_reclaim_inodes_nr(struct xfs_mount *mp, int nr_to_scan);
Dxfs_super.c1825 return xfs_reclaim_inodes_nr(XFS_M(sb), sc->nr_to_scan); in xfs_fs_free_cached_objects()
/fs/nfs/
Ddir.c2171 nfs_do_access_cache_scan(unsigned int nr_to_scan) in nfs_do_access_cache_scan() argument
2182 if (nr_to_scan-- == 0) in nfs_do_access_cache_scan()
2213 int nr_to_scan = sc->nr_to_scan; in nfs_access_cache_scan() local
2218 return nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_scan()
2233 unsigned int nr_to_scan; in nfs_access_cache_enforce_limit() local
2237 nr_to_scan = 100; in nfs_access_cache_enforce_limit()
2239 if (diff < nr_to_scan) in nfs_access_cache_enforce_limit()
2240 nr_to_scan = diff; in nfs_access_cache_enforce_limit()
2241 nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_enforce_limit()
/fs/ceph/
Ddir.c1240 unsigned long nr_to_scan; member
1259 if (!lwc->nr_to_scan) in __dentry_leases_walk()
1261 --lwc->nr_to_scan; in __dentry_leases_walk()
1387 lwc.nr_to_scan = CEPH_CAPS_PER_RELEASE * 2; in ceph_trim_dentries()
1389 if (!lwc.nr_to_scan) /* more invalid leases */ in ceph_trim_dentries()
1392 if (lwc.nr_to_scan < CEPH_CAPS_PER_RELEASE) in ceph_trim_dentries()
1393 lwc.nr_to_scan = CEPH_CAPS_PER_RELEASE; in ceph_trim_dentries()
1399 if (!lwc.nr_to_scan) /* more to check */ in ceph_trim_dentries()
/fs/f2fs/
Dshrinker.c78 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.c268 unsigned long nr = sc->nr_to_scan; in erofs_shrink_scan()
/fs/quota/
Ddquot.c725 while (!list_empty(&free_dquots) && sc->nr_to_scan) { in dqcache_shrink_scan()
731 sc->nr_to_scan--; in dqcache_shrink_scan()
/fs/gfs2/
Dglock.c1619 return gfs2_scan_glock_lru(sc->nr_to_scan); in gfs2_glock_shrink_scan()