Home
last modified time | relevance | path

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

/fs/ext4/
Dextents_status.c151 int nr_to_scan);
152 static int __ext4_es_shrink(struct ext4_sb_info *sbi, int nr_to_scan,
953 static int __ext4_es_shrink(struct ext4_sb_info *sbi, int nr_to_scan, in __ext4_es_shrink() argument
1000 shrunk = __es_try_to_reclaim_extents(ei, nr_to_scan); in __ext4_es_shrink()
1006 nr_to_scan -= shrunk; in __ext4_es_shrink()
1007 if (nr_to_scan == 0) in __ext4_es_shrink()
1038 nr_shrunk = __es_try_to_reclaim_extents(locked_ei, nr_to_scan); in __ext4_es_shrink()
1067 trace_ext4_es_shrink_count(sbi->s_sb, sc->nr_to_scan, nr); in ext4_es_count()
1076 int nr_to_scan = sc->nr_to_scan; in ext4_es_scan() local
1080 trace_ext4_es_shrink_scan_enter(sbi->s_sb, nr_to_scan, ret); in ext4_es_scan()
[all …]
/fs/
Dinternal.h117 extern long prune_icache_sb(struct super_block *sb, unsigned long nr_to_scan,
135 extern long prune_dcache_sb(struct super_block *sb, unsigned long nr_to_scan,
Dmbcache.c252 int nr_to_scan = sc->nr_to_scan; in mb_cache_shrink_scan() local
256 mb_debug("trying to free %d entries", nr_to_scan); in mb_cache_shrink_scan()
258 while ((nr_to_scan-- > 0) && !list_empty(&mb_cache_lru_list)) { in mb_cache_shrink_scan()
Dsuper.c87 dentries = mult_frac(sc->nr_to_scan, dentries, total_objects); in super_cache_scan()
88 inodes = mult_frac(sc->nr_to_scan, inodes, total_objects); in super_cache_scan()
98 fs_objects = mult_frac(sc->nr_to_scan, fs_objects, in super_cache_scan()
Dinode.c754 long prune_icache_sb(struct super_block *sb, unsigned long nr_to_scan, in prune_icache_sb() argument
761 &freeable, &nr_to_scan); in prune_icache_sb()
Ddcache.c1059 long prune_dcache_sb(struct super_block *sb, unsigned long nr_to_scan, in prune_dcache_sb() argument
1066 &dispose, &nr_to_scan); in prune_dcache_sb()
/fs/xfs/
Dxfs_icache.c1021 int *nr_to_scan) in xfs_reclaim_inodes_ag() argument
1109 *nr_to_scan -= XFS_LOOKUP_BATCH; in xfs_reclaim_inodes_ag()
1113 } while (nr_found && !done && *nr_to_scan > 0); in xfs_reclaim_inodes_ag()
1130 if (skipped && (flags & SYNC_WAIT) && *nr_to_scan > 0) { in xfs_reclaim_inodes_ag()
1142 int nr_to_scan = INT_MAX; in xfs_reclaim_inodes() local
1144 return xfs_reclaim_inodes_ag(mp, mode, &nr_to_scan); in xfs_reclaim_inodes()
1159 int nr_to_scan) in xfs_reclaim_inodes_nr() argument
1165 return xfs_reclaim_inodes_ag(mp, SYNC_TRYLOCK | SYNC_WAIT, &nr_to_scan); in xfs_reclaim_inodes_nr()
Dxfs_icache.h54 long xfs_reclaim_inodes_nr(struct xfs_mount *mp, int nr_to_scan);
Dxfs_buf.c1591 unsigned long nr_to_scan = sc->nr_to_scan; in xfs_buftarg_shrink_scan() local
1594 &dispose, &nr_to_scan); in xfs_buftarg_shrink_scan()
Dxfs_qm.c528 unsigned long nr_to_scan = sc->nr_to_scan; in xfs_qm_shrink_scan() local
537 &nr_to_scan); in xfs_qm_shrink_scan()
Dxfs_super.c1554 long nr_to_scan, in xfs_fs_free_cached_objects() argument
1557 return xfs_reclaim_inodes_nr(XFS_M(sb), nr_to_scan); in xfs_fs_free_cached_objects()
/fs/nfs/
Ddir.c2107 nfs_do_access_cache_scan(unsigned int nr_to_scan) in nfs_do_access_cache_scan() argument
2118 if (nr_to_scan-- == 0) in nfs_do_access_cache_scan()
2149 int nr_to_scan = sc->nr_to_scan; in nfs_access_cache_scan() local
2154 return nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_scan()
2169 unsigned int nr_to_scan; in nfs_access_cache_enforce_limit() local
2173 nr_to_scan = 100; in nfs_access_cache_enforce_limit()
2175 if (diff < nr_to_scan) in nfs_access_cache_enforce_limit()
2176 nr_to_scan = diff; in nfs_access_cache_enforce_limit()
2177 nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_enforce_limit()
/fs/f2fs/
Dshrinker.c81 unsigned long nr = sc->nr_to_scan; in f2fs_shrink_scan()
/fs/ubifs/
Dshrinker.c294 unsigned long nr = sc->nr_to_scan; in ubifs_shrink_scan()
/fs/quota/
Ddquot.c704 while (head != &free_dquots && sc->nr_to_scan) { in dqcache_shrink_scan()
710 sc->nr_to_scan--; in dqcache_shrink_scan()
/fs/gfs2/
Dquota.c175 &dispose, &sc->nr_to_scan); in gfs2_qd_shrink_scan()
Dglock.c1450 return gfs2_scan_glock_lru(sc->nr_to_scan); in gfs2_glock_shrink_scan()