/fs/ext4/ |
D | extents_status.c | 152 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, 1545 static int __es_shrink(struct ext4_sb_info *sbi, int nr_to_scan, in __es_shrink() argument 1592 nr_shrunk += es_reclaim_extents(ei, &nr_to_scan); in __es_shrink() 1595 if (nr_to_scan <= 0) in __es_shrink() 1611 nr_shrunk = es_reclaim_extents(locked_ei, &nr_to_scan); in __es_shrink() 1641 trace_ext4_es_shrink_count(sbi->s_sb, sc->nr_to_scan, nr); in ext4_es_count() 1650 int nr_to_scan = sc->nr_to_scan; in ext4_es_scan() local 1654 trace_ext4_es_shrink_scan_enter(sbi->s_sb, nr_to_scan, ret); in ext4_es_scan() 1656 nr_shrunk = __es_shrink(sbi, nr_to_scan, NULL); in ext4_es_scan() [all …]
|
/fs/ |
D | mbcache.c | 48 unsigned long nr_to_scan); 304 unsigned long nr_to_scan) in mb_cache_shrink() argument 310 while (nr_to_scan-- && !list_empty(&cache->c_list)) { in mb_cache_shrink() 338 return mb_cache_shrink(cache, sc->nr_to_scan); in mb_cache_scan()
|
D | super.c | 93 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/jbd2/ |
D | checkpoint.c | 416 unsigned long *nr_to_scan) in jbd2_journal_shrink_checkpoint_list() argument 456 (*nr_to_scan) -= min(*nr_to_scan, freed); in jbd2_journal_shrink_checkpoint_list() 457 if (*nr_to_scan == 0) in jbd2_journal_shrink_checkpoint_list() 474 if (*nr_to_scan && next_tid) in jbd2_journal_shrink_checkpoint_list()
|
D | journal.c | 1302 unsigned long nr_to_scan = sc->nr_to_scan; in jbd2_journal_shrink_scan() local 1307 trace_jbd2_shrink_scan_enter(journal, sc->nr_to_scan, count); in jbd2_journal_shrink_scan() 1309 nr_shrunk = jbd2_journal_shrink_checkpoint_list(journal, &nr_to_scan); in jbd2_journal_shrink_scan() 1312 trace_jbd2_shrink_scan_exit(journal, nr_to_scan, nr_shrunk, count); in jbd2_journal_shrink_scan() 1331 trace_jbd2_shrink_count(journal, sc->nr_to_scan, count); in jbd2_journal_shrink_count()
|
/fs/ceph/ |
D | dir.c | 1434 unsigned long nr_to_scan; member 1453 if (!lwc->nr_to_scan) in __dentry_leases_walk() 1455 --lwc->nr_to_scan; in __dentry_leases_walk() 1581 lwc.nr_to_scan = CEPH_CAPS_PER_RELEASE * 2; in ceph_trim_dentries() 1583 if (!lwc.nr_to_scan) /* more invalid leases */ in ceph_trim_dentries() 1586 if (lwc.nr_to_scan < CEPH_CAPS_PER_RELEASE) in ceph_trim_dentries() 1587 lwc.nr_to_scan = CEPH_CAPS_PER_RELEASE; in ceph_trim_dentries() 1593 if (!lwc.nr_to_scan) /* more to check */ in ceph_trim_dentries()
|
/fs/xfs/ |
D | xfs_icache.h | 53 long xfs_reclaim_inodes_nr(struct xfs_mount *mp, unsigned long nr_to_scan);
|
D | xfs_icache.c | 999 unsigned long nr_to_scan) in xfs_reclaim_inodes_nr() argument 1003 .icw_scan_limit = min_t(unsigned long, LONG_MAX, nr_to_scan), in xfs_reclaim_inodes_nr()
|
D | xfs_trace.h | 260 __field(unsigned long, nr_to_scan) 265 __entry->nr_to_scan = sc->nr_to_scan; 270 __entry->nr_to_scan,
|
D | xfs_super.c | 1148 return xfs_reclaim_inodes_nr(XFS_M(sb), sc->nr_to_scan); in xfs_fs_free_cached_objects()
|
/fs/nfs/ |
D | dir.c | 2788 nfs_do_access_cache_scan(unsigned int nr_to_scan) in nfs_do_access_cache_scan() argument 2799 if (nr_to_scan-- == 0) in nfs_do_access_cache_scan() 2830 int nr_to_scan = sc->nr_to_scan; in nfs_access_cache_scan() local 2835 return nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_scan() 2850 unsigned int nr_to_scan; in nfs_access_cache_enforce_limit() local 2854 nr_to_scan = 100; in nfs_access_cache_enforce_limit() 2856 if (diff < nr_to_scan) in nfs_access_cache_enforce_limit() 2857 nr_to_scan = diff; in nfs_access_cache_enforce_limit() 2858 nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_enforce_limit()
|
/fs/f2fs/ |
D | shrinker.c | 82 unsigned long nr = sc->nr_to_scan; in f2fs_shrink_scan()
|
/fs/ubifs/ |
D | shrinker.c | 282 unsigned long nr = sc->nr_to_scan; in ubifs_shrink_scan()
|
/fs/erofs/ |
D | utils.c | 228 unsigned long nr = sc->nr_to_scan; in erofs_shrink_scan()
|
/fs/quota/ |
D | dquot.c | 786 while (!list_empty(&free_dquots) && sc->nr_to_scan) { in dqcache_shrink_scan() 792 sc->nr_to_scan--; in dqcache_shrink_scan()
|
/fs/gfs2/ |
D | glock.c | 2091 return gfs2_scan_glock_lru(sc->nr_to_scan); in gfs2_glock_shrink_scan()
|