Home
last modified time | relevance | path

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

12

/linux-5.19.10/drivers/gpu/drm/msm/
Dmsm_gem_shrinker.c67 scan(struct msm_drm_private *priv, unsigned nr_to_scan, struct list_head *list, in scan() argument
77 while (freed < nr_to_scan) { in scan()
133 freed = scan(priv, sc->nr_to_scan, &priv->inactive_dontneed, purge); in msm_gem_shrinker_scan()
138 if (can_swap() && freed < sc->nr_to_scan) { in msm_gem_shrinker_scan()
139 int evicted = scan(priv, sc->nr_to_scan - freed, in msm_gem_shrinker_scan()
153 msm_gem_shrinker_shrink(struct drm_device *dev, unsigned long nr_to_scan) in msm_gem_shrinker_shrink() argument
157 .nr_to_scan = nr_to_scan, in msm_gem_shrinker_shrink()
Dmsm_drv.h243 unsigned long msm_gem_shrinker_shrink(struct drm_device *dev, unsigned long nr_to_scan);
/linux-5.19.10/include/trace/events/
Djbd2.h399 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 …]
Dext4.h2307 TP_PROTO(struct super_block *sb, int nr_to_scan, int cache_cnt),
2309 TP_ARGS(sb, nr_to_scan, cache_cnt),
2313 __field( int, nr_to_scan )
2319 __entry->nr_to_scan = nr_to_scan;
2325 __entry->nr_to_scan, __entry->cache_cnt)
2329 TP_PROTO(struct super_block *sb, int nr_to_scan, int cache_cnt),
2331 TP_ARGS(sb, nr_to_scan, cache_cnt)
2335 TP_PROTO(struct super_block *sb, int nr_to_scan, int cache_cnt),
2337 TP_ARGS(sb, nr_to_scan, cache_cnt)
/linux-5.19.10/fs/jbd2/
Dcheckpoint.c462 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
513 unsigned long nr_scanned = *nr_to_scan; in jbd2_journal_shrink_checkpoint_list()
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()
[all …]
Djournal.c1300 unsigned long nr_to_scan = sc->nr_to_scan; in jbd2_journal_shrink_scan() local
1305 trace_jbd2_shrink_scan_enter(journal, sc->nr_to_scan, count); in jbd2_journal_shrink_scan()
1307 nr_shrunk = jbd2_journal_shrink_checkpoint_list(journal, &nr_to_scan); in jbd2_journal_shrink_scan()
1310 trace_jbd2_shrink_scan_exit(journal, nr_to_scan, nr_shrunk, count); in jbd2_journal_shrink_scan()
1329 trace_jbd2_shrink_count(journal, sc->nr_to_scan, count); in jbd2_journal_shrink_count()
/linux-5.19.10/net/sunrpc/
Dauth.c430 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-5.19.10/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,
1466 static int __es_shrink(struct ext4_sb_info *sbi, int nr_to_scan, in __es_shrink() argument
1513 nr_shrunk += es_reclaim_extents(ei, &nr_to_scan); in __es_shrink()
1516 if (nr_to_scan <= 0) in __es_shrink()
1532 nr_shrunk = es_reclaim_extents(locked_ei, &nr_to_scan); in __es_shrink()
1562 trace_ext4_es_shrink_count(sbi->s_sb, sc->nr_to_scan, nr); in ext4_es_count()
1571 int nr_to_scan = sc->nr_to_scan; in ext4_es_scan() local
1575 trace_ext4_es_shrink_scan_enter(sbi->s_sb, nr_to_scan, ret); in ext4_es_scan()
1577 nr_shrunk = __es_shrink(sbi, nr_to_scan, NULL); in ext4_es_scan()
[all …]
/linux-5.19.10/include/linux/
Dlist_lru.h195 &sc->nr_to_scan); in list_lru_shrink_walk()
203 &sc->nr_to_scan); in list_lru_shrink_walk_irq()
Dshrinker.h23 unsigned long nr_to_scan; member
Djbd2.h1443 unsigned long jbd2_journal_shrink_checkpoint_list(journal_t *journal, unsigned long *nr_to_scan);
/linux-5.19.10/fs/
Dmbcache.c48 unsigned long nr_to_scan);
343 unsigned long nr_to_scan) in mb_cache_shrink() argument
350 while (nr_to_scan-- && !list_empty(&cache->c_list)) { in mb_cache_shrink()
395 return mb_cache_shrink(cache, sc->nr_to_scan); in mb_cache_scan()
Dsuper.c92 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-5.19.10/drivers/gpu/drm/i915/gem/
Di915_gem_shrinker.c323 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-5.19.10/mm/
Dvmscan.c766 unsigned long nr_to_scan = min(batch_size, total_scan); in do_shrink_slab() local
768 shrinkctl->nr_to_scan = nr_to_scan; in do_shrink_slab()
769 shrinkctl->nr_scanned = nr_to_scan; in do_shrink_slab()
2077 static unsigned long isolate_lru_pages(unsigned long nr_to_scan, in isolate_lru_pages() argument
2092 while (scan < nr_to_scan && !list_empty(src)) { in isolate_lru_pages()
2163 trace_mm_vmscan_lru_isolate(sc->reclaim_idx, sc->order, nr_to_scan, in isolate_lru_pages()
2341 shrink_inactive_list(unsigned long nr_to_scan, struct lruvec *lruvec, in shrink_inactive_list() argument
2371 nr_taken = isolate_lru_pages(nr_to_scan, lruvec, &page_list, in shrink_inactive_list()
2448 static void shrink_active_list(unsigned long nr_to_scan, in shrink_active_list() argument
2468 nr_taken = isolate_lru_pages(nr_to_scan, lruvec, &l_hold, in shrink_active_list()
[all …]
/linux-5.19.10/fs/xfs/
Dxfs_icache.h53 long xfs_reclaim_inodes_nr(struct xfs_mount *mp, unsigned long nr_to_scan);
Dxfs_icache.c992 unsigned long nr_to_scan) in xfs_reclaim_inodes_nr() argument
996 .icw_scan_limit = min_t(unsigned long, LONG_MAX, nr_to_scan), in xfs_reclaim_inodes_nr()
/linux-5.19.10/drivers/gpu/drm/panfrost/
Dpanfrost_gem_shrinker.c77 if (freed >= sc->nr_to_scan) in panfrost_gem_shrinker_scan()
/linux-5.19.10/fs/f2fs/
Dshrinker.c76 unsigned long nr = sc->nr_to_scan; in f2fs_shrink_scan()
/linux-5.19.10/fs/ceph/
Ddir.c1373 unsigned long nr_to_scan; member
1392 if (!lwc->nr_to_scan) in __dentry_leases_walk()
1394 --lwc->nr_to_scan; in __dentry_leases_walk()
1520 lwc.nr_to_scan = CEPH_CAPS_PER_RELEASE * 2; in ceph_trim_dentries()
1522 if (!lwc.nr_to_scan) /* more invalid leases */ in ceph_trim_dentries()
1525 if (lwc.nr_to_scan < CEPH_CAPS_PER_RELEASE) in ceph_trim_dentries()
1526 lwc.nr_to_scan = CEPH_CAPS_PER_RELEASE; in ceph_trim_dentries()
1532 if (!lwc.nr_to_scan) /* more to check */ in ceph_trim_dentries()
/linux-5.19.10/fs/nfs/
Ddir.c2746 nfs_do_access_cache_scan(unsigned int nr_to_scan) in nfs_do_access_cache_scan() argument
2757 if (nr_to_scan-- == 0) in nfs_do_access_cache_scan()
2788 int nr_to_scan = sc->nr_to_scan; in nfs_access_cache_scan() local
2793 return nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_scan()
2808 unsigned int nr_to_scan; in nfs_access_cache_enforce_limit() local
2812 nr_to_scan = 100; in nfs_access_cache_enforce_limit()
2814 if (diff < nr_to_scan) in nfs_access_cache_enforce_limit()
2815 nr_to_scan = diff; in nfs_access_cache_enforce_limit()
2816 nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_enforce_limit()
/linux-5.19.10/fs/ubifs/
Dshrinker.c282 unsigned long nr = sc->nr_to_scan; in ubifs_shrink_scan()
/linux-5.19.10/fs/erofs/
Dutils.c228 unsigned long nr = sc->nr_to_scan; in erofs_shrink_scan()
/linux-5.19.10/drivers/md/
Ddm-bufio.c1687 atomic_long_add(sc->nr_to_scan, &c->need_shrink); in dm_bufio_shrink_scan()
1690 return sc->nr_to_scan; in dm_bufio_shrink_scan()
/linux-5.19.10/drivers/virtio/
Dvirtio_balloon.c841 return shrink_free_pages(vb, sc->nr_to_scan); in virtio_balloon_shrinker_scan()

12