/linux-6.3-rc2/include/trace/events/ |
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) 425 TP_ARGS(journal, nr_to_scan, count) 432 TP_ARGS(journal, nr_to_scan, count) 440 TP_ARGS(journal, nr_to_scan, nr_shrunk, count), 444 __field(unsigned long, nr_to_scan) 451 __entry->nr_to_scan = nr_to_scan; [all …]
|
A D | ext4.h | 2344 TP_PROTO(struct super_block *sb, int nr_to_scan, int cache_cnt), 2346 TP_ARGS(sb, nr_to_scan, cache_cnt), 2350 __field( int, nr_to_scan ) 2356 __entry->nr_to_scan = nr_to_scan; 2362 __entry->nr_to_scan, __entry->cache_cnt) 2366 TP_PROTO(struct super_block *sb, int nr_to_scan, int cache_cnt), 2368 TP_ARGS(sb, nr_to_scan, cache_cnt) 2372 TP_PROTO(struct super_block *sb, int nr_to_scan, int cache_cnt), 2374 TP_ARGS(sb, nr_to_scan, cache_cnt)
|
/linux-6.3-rc2/fs/jbd2/ |
A D | checkpoint.c | 462 unsigned long *nr_to_scan, in journal_shrink_one_cp_list() argument 470 if (!jh || *nr_to_scan == 0) in journal_shrink_one_cp_list() 478 (*nr_to_scan)--; in journal_shrink_one_cp_list() 491 } while (jh != last_jh && *nr_to_scan); in journal_shrink_one_cp_list() 506 unsigned long *nr_to_scan) in jbd2_journal_shrink_checkpoint_list() argument 545 nr_to_scan, &released); in jbd2_journal_shrink_checkpoint_list() 546 if (*nr_to_scan == 0) in jbd2_journal_shrink_checkpoint_list() 554 nr_to_scan, &released); in jbd2_journal_shrink_checkpoint_list() 555 if (*nr_to_scan == 0) in jbd2_journal_shrink_checkpoint_list() 572 if (*nr_to_scan && next_tid) in jbd2_journal_shrink_checkpoint_list() [all …]
|
A D | journal.c | 1305 unsigned long nr_to_scan = sc->nr_to_scan; in jbd2_journal_shrink_scan() local 1310 trace_jbd2_shrink_scan_enter(journal, sc->nr_to_scan, count); in jbd2_journal_shrink_scan() 1312 nr_shrunk = jbd2_journal_shrink_checkpoint_list(journal, &nr_to_scan); in jbd2_journal_shrink_scan() 1315 trace_jbd2_shrink_scan_exit(journal, nr_to_scan, nr_shrunk, count); in jbd2_journal_shrink_scan() 1334 trace_jbd2_shrink_count(journal, sc->nr_to_scan, count); in jbd2_journal_shrink_count()
|
/linux-6.3-rc2/drivers/gpu/drm/msm/ |
A D | msm_gpu_trace.h | 119 TP_PROTO(u32 nr_to_scan, u32 purged, u32 evicted, 121 TP_ARGS(nr_to_scan, purged, evicted, active_purged, active_evicted), 123 __field(u32, nr_to_scan) 130 __entry->nr_to_scan = nr_to_scan; 137 __entry->nr_to_scan, __entry->purged, __entry->evicted,
|
A D | msm_gem_shrinker.c | 117 long nr = sc->nr_to_scan; in msm_gem_shrinker_scan() 130 trace_msm_gem_shrink(sc->nr_to_scan, stages[0].freed, in msm_gem_shrinker_scan() 140 msm_gem_shrinker_shrink(struct drm_device *dev, unsigned long nr_to_scan) in msm_gem_shrinker_shrink() argument 144 .nr_to_scan = nr_to_scan, in msm_gem_shrinker_shrink()
|
A D | msm_drv.h | 281 unsigned long msm_gem_shrinker_shrink(struct drm_device *dev, unsigned long nr_to_scan);
|
/linux-6.3-rc2/mm/ |
A D | shrinker_debug.c | 113 unsigned long nr_to_scan = 0, ino, read_len; in shrinker_debugfs_scan_write() local 127 if (sscanf(kbuf, "%lu %d %lu", &ino, &nid, &nr_to_scan) != 3) in shrinker_debugfs_scan_write() 133 if (nr_to_scan == 0) in shrinker_debugfs_scan_write() 157 sc.nr_to_scan = nr_to_scan; in shrinker_debugfs_scan_write() 158 sc.nr_scanned = nr_to_scan; in shrinker_debugfs_scan_write()
|
A D | vmscan.c | 851 shrinkctl->nr_to_scan = nr_to_scan; in do_shrink_slab() 5196 *nr_to_scan = 0; in should_run_aging() 5252 unsigned long nr_to_scan; in get_nr_to_scan() local 5260 return nr_to_scan; in get_nr_to_scan() 5264 return nr_to_scan; in get_nr_to_scan() 5281 long nr_to_scan; in try_to_shrink_lruvec() local 5294 if (nr_to_scan <= 0) in try_to_shrink_lruvec() 5302 if (scanned >= nr_to_scan) in try_to_shrink_lruvec() 5312 return nr_to_scan < 0; in try_to_shrink_lruvec() 6208 unsigned long nr_to_scan; in shrink_lruvec() local [all …]
|
/linux-6.3-rc2/net/sunrpc/ |
A D | auth.c | 430 rpcauth_prune_expired(struct list_head *free, int nr_to_scan) in rpcauth_prune_expired() argument 438 if (nr_to_scan-- == 0) in rpcauth_prune_expired() 461 rpcauth_cache_do_shrink(int nr_to_scan) in rpcauth_cache_do_shrink() argument 467 freed = rpcauth_prune_expired(&free, nr_to_scan); in rpcauth_cache_do_shrink() 488 return rpcauth_cache_do_shrink(sc->nr_to_scan); in rpcauth_cache_shrink_scan() 502 unsigned int nr_to_scan; in rpcauth_cache_enforce_limit() local 507 nr_to_scan = 100; in rpcauth_cache_enforce_limit() 508 if (diff < nr_to_scan) in rpcauth_cache_enforce_limit() 509 nr_to_scan = diff; in rpcauth_cache_enforce_limit() 510 rpcauth_cache_do_shrink(nr_to_scan); in rpcauth_cache_enforce_limit()
|
/linux-6.3-rc2/fs/ |
A 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()
|
A D | super.c | 92 dentries = mult_frac(sc->nr_to_scan, dentries, total_objects); in super_cache_scan() 93 inodes = mult_frac(sc->nr_to_scan, inodes, total_objects); in super_cache_scan() 94 fs_objects = mult_frac(sc->nr_to_scan, fs_objects, total_objects); in super_cache_scan() 103 sc->nr_to_scan = dentries + 1; in super_cache_scan() 105 sc->nr_to_scan = inodes + 1; in super_cache_scan() 109 sc->nr_to_scan = fs_objects + 1; in super_cache_scan()
|
/linux-6.3-rc2/fs/ext4/ |
A D | extents_status.c | 151 static int __es_shrink(struct ext4_sb_info *sbi, int nr_to_scan, 1511 nr_shrunk += es_reclaim_extents(ei, &nr_to_scan); in __es_shrink() 1514 if (nr_to_scan <= 0) in __es_shrink() 1530 nr_shrunk = es_reclaim_extents(locked_ei, &nr_to_scan); in __es_shrink() 1560 trace_ext4_es_shrink_count(sbi->s_sb, sc->nr_to_scan, nr); in ext4_es_count() 1569 int nr_to_scan = sc->nr_to_scan; in ext4_es_scan() local 1573 trace_ext4_es_shrink_scan_enter(sbi->s_sb, nr_to_scan, ret); in ext4_es_scan() 1575 nr_shrunk = __es_shrink(sbi, nr_to_scan, NULL); in ext4_es_scan() 1690 int *nr_to_scan, int *nr_shrunk) in es_do_reclaim_extents() argument 1701 while (*nr_to_scan > 0) { in es_do_reclaim_extents() [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | list_lru.h | 195 &sc->nr_to_scan); in list_lru_shrink_walk() 203 &sc->nr_to_scan); in list_lru_shrink_walk_irq()
|
A D | shrinker.h | 26 unsigned long nr_to_scan; member
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_shrinker.c | 323 sc->nr_to_scan, in i915_gem_shrinker_scan() 327 if (sc->nr_scanned < sc->nr_to_scan && current_is_kswapd()) { in i915_gem_shrinker_scan() 332 sc->nr_to_scan - sc->nr_scanned, in i915_gem_shrinker_scan()
|
/linux-6.3-rc2/fs/xfs/ |
A D | xfs_icache.h | 53 long xfs_reclaim_inodes_nr(struct xfs_mount *mp, unsigned long nr_to_scan);
|
/linux-6.3-rc2/drivers/gpu/drm/panfrost/ |
A D | panfrost_gem_shrinker.c | 77 if (freed >= sc->nr_to_scan) in panfrost_gem_shrinker_scan()
|
/linux-6.3-rc2/fs/f2fs/ |
A D | shrinker.c | 82 unsigned long nr = sc->nr_to_scan; in f2fs_shrink_scan()
|
/linux-6.3-rc2/fs/ceph/ |
A 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()
|
/linux-6.3-rc2/fs/ubifs/ |
A D | shrinker.c | 282 unsigned long nr = sc->nr_to_scan; in ubifs_shrink_scan()
|
/linux-6.3-rc2/include/drm/ |
A D | drm_gem.h | 479 unsigned long drm_gem_lru_scan(struct drm_gem_lru *lru, unsigned nr_to_scan,
|
/linux-6.3-rc2/fs/nfs/ |
A D | dir.c | 2793 nfs_do_access_cache_scan(unsigned int nr_to_scan) in nfs_do_access_cache_scan() argument 2804 if (nr_to_scan-- == 0) in nfs_do_access_cache_scan() 2835 int nr_to_scan = sc->nr_to_scan; in nfs_access_cache_scan() local 2840 return nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_scan() 2855 unsigned int nr_to_scan; in nfs_access_cache_enforce_limit() local 2859 nr_to_scan = 100; in nfs_access_cache_enforce_limit() 2861 if (diff < nr_to_scan) in nfs_access_cache_enforce_limit() 2862 nr_to_scan = diff; in nfs_access_cache_enforce_limit() 2863 nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_enforce_limit()
|
/linux-6.3-rc2/fs/erofs/ |
A D | utils.c | 228 unsigned long nr = sc->nr_to_scan; in erofs_shrink_scan()
|
/linux-6.3-rc2/drivers/gpu/drm/ |
A D | drm_gem.c | 1394 drm_gem_lru_scan(struct drm_gem_lru *lru, unsigned nr_to_scan, in drm_gem_lru_scan() argument 1405 while (freed < nr_to_scan) { in drm_gem_lru_scan()
|