/linux/include/trace/events/ |
H A D | jbd2.h | 399 TP_PROTO(journal_t *journal, unsigned long nr_to_scan, 402 TP_ARGS(journal, nr_to_scan, count), 406 __field(unsigned long, nr_to_scan) 412 __entry->nr_to_scan = nr_to_scan; 418 __entry->nr_to_scan, __entry->count) 423 TP_PROTO(journal_t *journal, unsigned long nr_to_scan, unsigned long count), 425 TP_ARGS(journal, nr_to_scan, count) 430 TP_PROTO(journal_t *journal, unsigned long nr_to_scan, unsigned long count), 432 TP_ARGS(journal, nr_to_scan, count) 437 TP_PROTO(journal_t *journal, unsigned long nr_to_scan, [all …]
|
H A D | ext4.h | 2349 TP_PROTO(struct super_block *sb, int nr_to_scan, int cache_cnt), 2351 TP_ARGS(sb, nr_to_scan, cache_cnt), 2355 __field( int, nr_to_scan ) 2361 __entry->nr_to_scan = nr_to_scan; 2367 __entry->nr_to_scan, __entry->cache_cnt) 2371 TP_PROTO(struct super_block *sb, int nr_to_scan, int cache_cnt), 2373 TP_ARGS(sb, nr_to_scan, cache_cnt) 2377 TP_PROTO(struct super_block *sb, int nr_to_scan, int cache_cnt), 2379 TP_ARGS(sb, nr_to_scan, cache_cnt)
|
/linux/mm/ |
H A D | shrinker_debug.c | 109 unsigned long nr_to_scan = 0, ino, read_len; in shrinker_debugfs_scan_write() local 122 if (sscanf(kbuf, "%lu %d %lu", &ino, &nid, &nr_to_scan) != 3) in shrinker_debugfs_scan_write() 128 if (nr_to_scan == 0) in shrinker_debugfs_scan_write() 146 sc.nr_to_scan = nr_to_scan; in shrinker_debugfs_scan_write() 147 sc.nr_scanned = nr_to_scan; in shrinker_debugfs_scan_write()
|
H A D | shrinker.c | 433 unsigned long nr_to_scan = min(batch_size, total_scan); in do_shrink_slab() local 435 shrinkctl->nr_to_scan = nr_to_scan; in do_shrink_slab() 436 shrinkctl->nr_scanned = nr_to_scan; in do_shrink_slab()
|
H A D | vmscan.c | 1649 static unsigned long isolate_lru_folios(unsigned long nr_to_scan, in isolate_lru_folios() argument 1664 while (scan < nr_to_scan && !list_empty(src)) { in isolate_lru_folios() 1735 trace_mm_vmscan_lru_isolate(sc->reclaim_idx, sc->order, nr_to_scan, in isolate_lru_folios() 1914 static unsigned long shrink_inactive_list(unsigned long nr_to_scan, in shrink_inactive_list() argument 1945 nr_taken = isolate_lru_folios(nr_to_scan, lruvec, &folio_list, in shrink_inactive_list() 2034 static void shrink_active_list(unsigned long nr_to_scan, in shrink_active_list() argument 2054 nr_taken = isolate_lru_folios(nr_to_scan, lruvec, &l_hold, in shrink_active_list() 2187 static unsigned long shrink_list(enum lru_list lru, unsigned long nr_to_scan, in shrink_list() argument 2192 shrink_active_list(nr_to_scan, lruvec, sc, lru); in shrink_list() 2198 return shrink_inactive_list(nr_to_scan, lruvec, sc, lru); in shrink_list() [all …]
|
/linux/drivers/gpu/drm/msm/ |
H A D | msm_gem_shrinker.c | 116 long nr = sc->nr_to_scan; in msm_gem_shrinker_scan() 133 trace_msm_gem_shrink(sc->nr_to_scan, stages[0].freed, in msm_gem_shrinker_scan() 143 msm_gem_shrinker_shrink(struct drm_device *dev, unsigned long nr_to_scan) in msm_gem_shrinker_shrink() argument 147 .nr_to_scan = nr_to_scan, in msm_gem_shrinker_shrink()
|
/linux/net/sunrpc/ |
H A D | auth.c | 427 rpcauth_prune_expired(struct list_head *free, int nr_to_scan) in rpcauth_prune_expired() argument 435 if (nr_to_scan-- == 0) in rpcauth_prune_expired() 458 rpcauth_cache_do_shrink(int nr_to_scan) in rpcauth_cache_do_shrink() argument 464 freed = rpcauth_prune_expired(&free, nr_to_scan); in rpcauth_cache_do_shrink() 485 return rpcauth_cache_do_shrink(sc->nr_to_scan); in rpcauth_cache_shrink_scan() 499 unsigned int nr_to_scan; in rpcauth_cache_enforce_limit() local 504 nr_to_scan = 100; in rpcauth_cache_enforce_limit() 505 if (diff < nr_to_scan) in rpcauth_cache_enforce_limit() 506 nr_to_scan = diff; in rpcauth_cache_enforce_limit() 507 rpcauth_cache_do_shrink(nr_to_scan); in rpcauth_cache_enforce_limit()
|
/linux/fs/ext4/ |
H A 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, 1557 static int __es_shrink(struct ext4_sb_info *sbi, int nr_to_scan, in __es_shrink() argument 1604 nr_shrunk += es_reclaim_extents(ei, &nr_to_scan); in __es_shrink() 1607 if (nr_to_scan <= 0) in __es_shrink() 1623 nr_shrunk = es_reclaim_extents(locked_ei, &nr_to_scan); in __es_shrink() 1653 trace_ext4_es_shrink_count(sbi->s_sb, sc->nr_to_scan, nr); in ext4_es_count() 1661 int nr_to_scan = sc->nr_to_scan; in ext4_es_scan() local 1665 trace_ext4_es_shrink_scan_enter(sbi->s_sb, nr_to_scan, ret); in ext4_es_scan() 1667 nr_shrunk = __es_shrink(sbi, nr_to_scan, NULL); in ext4_es_scan() [all …]
|
/linux/fs/ |
H A D | mbcache.c | 48 unsigned long nr_to_scan); 303 unsigned long nr_to_scan) in mb_cache_shrink() argument 309 while (nr_to_scan-- && !list_empty(&cache->c_list)) { in mb_cache_shrink() 336 return mb_cache_shrink(cache, sc->nr_to_scan); in mb_cache_scan()
|
H A D | super.c | 209 dentries = mult_frac(sc->nr_to_scan, dentries, total_objects); in super_cache_scan() 210 inodes = mult_frac(sc->nr_to_scan, inodes, total_objects); in super_cache_scan() 211 fs_objects = mult_frac(sc->nr_to_scan, fs_objects, total_objects); in super_cache_scan() 220 sc->nr_to_scan = dentries + 1; in super_cache_scan() 222 sc->nr_to_scan = inodes + 1; in super_cache_scan() 226 sc->nr_to_scan = fs_objects + 1; in super_cache_scan()
|
/linux/fs/jbd2/ |
H A D | checkpoint.c | 408 unsigned long *nr_to_scan) in jbd2_journal_shrink_checkpoint_list() argument 451 (*nr_to_scan) -= min(*nr_to_scan, freed); in jbd2_journal_shrink_checkpoint_list() 452 if (*nr_to_scan == 0) in jbd2_journal_shrink_checkpoint_list() 469 if (*nr_to_scan && journal->j_shrink_transaction) in jbd2_journal_shrink_checkpoint_list()
|
H A D | journal.c | 1251 unsigned long nr_to_scan = sc->nr_to_scan; in jbd2_journal_shrink_scan() local 1256 trace_jbd2_shrink_scan_enter(journal, sc->nr_to_scan, count); in jbd2_journal_shrink_scan() 1258 nr_shrunk = jbd2_journal_shrink_checkpoint_list(journal, &nr_to_scan); in jbd2_journal_shrink_scan() 1261 trace_jbd2_shrink_scan_exit(journal, nr_to_scan, nr_shrunk, count); in jbd2_journal_shrink_scan() 1280 trace_jbd2_shrink_count(journal, sc->nr_to_scan, count); in jbd2_journal_shrink_count()
|
/linux/fs/btrfs/ |
H A D | extent_map.c | 1119 long nr_to_scan; member 1191 if (ctx->scanned >= ctx->nr_to_scan) in btrfs_scan_inode() 1225 if (ctx->scanned >= ctx->nr_to_scan || in btrfs_scan_root() 1267 ctx.nr_to_scan = atomic64_read(&fs_info->em_shrinker_nr_to_scan); in btrfs_extent_map_shrinker_worker() 1278 while (ctx.scanned < ctx.nr_to_scan && !btrfs_fs_closing(fs_info)) { in btrfs_extent_map_shrinker_worker() 1321 void btrfs_free_extent_maps(struct btrfs_fs_info *fs_info, long nr_to_scan) in btrfs_free_extent_maps() argument 1338 if (atomic64_cmpxchg(&fs_info->em_shrinker_nr_to_scan, 0, nr_to_scan) != 0) in btrfs_free_extent_maps()
|
/linux/include/linux/ |
H A D | shrinker.h | 45 unsigned long nr_to_scan; member
|
/linux/fs/xfs/ |
H A D | xfs_icache.h | 56 long xfs_reclaim_inodes_nr(struct xfs_mount *mp, unsigned long nr_to_scan);
|
/linux/drivers/gpu/drm/panfrost/ |
H A D | panfrost_gem_shrinker.c | 75 if (freed >= sc->nr_to_scan) in panfrost_gem_shrinker_scan()
|
/linux/fs/f2fs/ |
H A D | shrinker.c | 82 unsigned long nr = sc->nr_to_scan; in f2fs_shrink_scan()
|
/linux/fs/ceph/ |
H A D | dir.c | 1619 unsigned long nr_to_scan; member 1640 if (!lwc->nr_to_scan) in __dentry_leases_walk() 1642 --lwc->nr_to_scan; in __dentry_leases_walk() 1771 lwc.nr_to_scan = CEPH_CAPS_PER_RELEASE * 2; in ceph_trim_dentries() 1773 if (!lwc.nr_to_scan) /* more invalid leases */ in ceph_trim_dentries() 1776 if (lwc.nr_to_scan < CEPH_CAPS_PER_RELEASE) in ceph_trim_dentries() 1777 lwc.nr_to_scan = CEPH_CAPS_PER_RELEASE; in ceph_trim_dentries() 1783 if (!lwc.nr_to_scan) /* more to check */ in ceph_trim_dentries()
|
/linux/fs/nfs/ |
H A D | dir.c | 2862 nfs_do_access_cache_scan(unsigned int nr_to_scan) in nfs_do_access_cache_scan() argument 2873 if (nr_to_scan-- == 0) in nfs_do_access_cache_scan() 2904 int nr_to_scan = sc->nr_to_scan; in nfs_access_cache_scan() local 2909 return nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_scan() 2924 unsigned int nr_to_scan; in nfs_access_cache_enforce_limit() local 2928 nr_to_scan = 100; in nfs_access_cache_enforce_limit() 2930 if (diff < nr_to_scan) in nfs_access_cache_enforce_limit() 2931 nr_to_scan = diff; in nfs_access_cache_enforce_limit() 2932 nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_enforce_limit()
|
/linux/fs/ubifs/ |
H A D | shrinker.c | 282 unsigned long nr = sc->nr_to_scan; in ubifs_shrink_scan()
|
/linux/include/drm/ |
H A D | drm_gem.h | 557 unsigned int nr_to_scan,
|
/linux/fs/bcachefs/ |
H A D | trace.h | 414 TP_PROTO(long nr_to_scan, long can_free, long ret), 415 TP_ARGS(nr_to_scan, can_free, ret), 418 __field(long, nr_to_scan ) 424 __entry->nr_to_scan = nr_to_scan; 430 __entry->nr_to_scan, __entry->can_free, __entry->ret)
|
H A D | sysfs.c | 455 sc.nr_to_scan = strtoul_or_return(buf); in STORE() 463 sc.nr_to_scan = strtoul_or_return(buf); in STORE()
|
/linux/fs/erofs/ |
H A D | zutil.c | 255 unsigned long nr = sc->nr_to_scan; in erofs_shrink_scan()
|
/linux/drivers/gpu/drm/ |
H A D | drm_gem.c | 1466 unsigned int nr_to_scan, in drm_gem_lru_scan() argument 1478 while (freed < nr_to_scan) { in drm_gem_lru_scan()
|