/Linux-v4.19/fs/ext4/ |
D | extents_status.c | 149 static int es_reclaim_extents(struct ext4_inode_info *ei, int *nr_to_scan); 150 static int __es_shrink(struct ext4_sb_info *sbi, int nr_to_scan, 972 static int __es_shrink(struct ext4_sb_info *sbi, int nr_to_scan, in __es_shrink() argument 1019 nr_shrunk += es_reclaim_extents(ei, &nr_to_scan); in __es_shrink() 1022 if (nr_to_scan <= 0) in __es_shrink() 1038 nr_shrunk = es_reclaim_extents(locked_ei, &nr_to_scan); in __es_shrink() 1068 trace_ext4_es_shrink_count(sbi->s_sb, sc->nr_to_scan, nr); in ext4_es_count() 1077 int nr_to_scan = sc->nr_to_scan; in ext4_es_scan() local 1081 trace_ext4_es_shrink_scan_enter(sbi->s_sb, nr_to_scan, ret); in ext4_es_scan() 1083 if (!nr_to_scan) in ext4_es_scan() [all …]
|
/Linux-v4.19/drivers/staging/android/ion/ |
D | ion_system_heap.c | 172 int nr_to_scan) in ion_system_heap_shrink() argument 182 if (!nr_to_scan) in ion_system_heap_shrink() 191 nr_to_scan); in ion_system_heap_shrink() 196 nr_to_scan); in ion_system_heap_shrink() 197 nr_to_scan -= nr_freed; in ion_system_heap_shrink() 199 if (nr_to_scan <= 0) in ion_system_heap_shrink()
|
D | ion_page_pool.c | 98 int nr_to_scan) in ion_page_pool_shrink() argument 108 if (nr_to_scan == 0) in ion_page_pool_shrink() 111 while (freed < nr_to_scan) { in ion_page_pool_shrink()
|
D | ion.h | 124 int (*shrink)(struct ion_heap *heap, gfp_t gfp_mask, int nr_to_scan); 327 int nr_to_scan);
|
D | ion.c | 499 sc.nr_to_scan = val; in debug_shrink_set() 503 sc.nr_to_scan = objs; in debug_shrink_set() 517 sc.nr_to_scan = 0; in debug_shrink_get()
|
D | ion_heap.c | 279 int to_scan = sc->nr_to_scan; in ion_heap_shrink_scan()
|
/Linux-v4.19/net/sunrpc/ |
D | auth.c | 452 rpcauth_prune_expired(struct list_head *free, int nr_to_scan) in rpcauth_prune_expired() argument 461 if (nr_to_scan-- == 0) in rpcauth_prune_expired() 492 rpcauth_cache_do_shrink(int nr_to_scan) in rpcauth_cache_do_shrink() argument 498 freed = rpcauth_prune_expired(&free, nr_to_scan); in rpcauth_cache_do_shrink() 519 return rpcauth_cache_do_shrink(sc->nr_to_scan); in rpcauth_cache_shrink_scan() 533 unsigned int nr_to_scan; in rpcauth_cache_enforce_limit() local 538 nr_to_scan = 100; in rpcauth_cache_enforce_limit() 539 if (diff < nr_to_scan) in rpcauth_cache_enforce_limit() 540 nr_to_scan = diff; in rpcauth_cache_enforce_limit() 541 rpcauth_cache_do_shrink(nr_to_scan); in rpcauth_cache_enforce_limit()
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | i915_gem_shrinker.c | 364 sc->nr_to_scan, in i915_gem_shrinker_scan() 369 if (sc->nr_scanned < sc->nr_to_scan) in i915_gem_shrinker_scan() 371 sc->nr_to_scan - sc->nr_scanned, in i915_gem_shrinker_scan() 375 if (sc->nr_scanned < sc->nr_to_scan && current_is_kswapd()) { in i915_gem_shrinker_scan() 378 sc->nr_to_scan - sc->nr_scanned, in i915_gem_shrinker_scan()
|
/Linux-v4.19/fs/ |
D | mbcache.c | 47 unsigned long nr_to_scan); 280 unsigned long nr_to_scan) in mb_cache_shrink() argument 287 while (nr_to_scan-- && !list_empty(&cache->c_list)) { in mb_cache_shrink() 324 return mb_cache_shrink(cache, sc->nr_to_scan); in mb_cache_scan()
|
D | super.c | 90 dentries = mult_frac(sc->nr_to_scan, dentries, total_objects); in super_cache_scan() 91 inodes = mult_frac(sc->nr_to_scan, inodes, total_objects); in super_cache_scan() 92 fs_objects = mult_frac(sc->nr_to_scan, fs_objects, total_objects); in super_cache_scan() 101 sc->nr_to_scan = dentries + 1; in super_cache_scan() 103 sc->nr_to_scan = inodes + 1; in super_cache_scan() 107 sc->nr_to_scan = fs_objects + 1; in super_cache_scan()
|
/Linux-v4.19/include/linux/ |
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()
|
D | shrinker.h | 23 unsigned long nr_to_scan; member
|
/Linux-v4.19/mm/ |
D | vmscan.c | 543 unsigned long nr_to_scan = min(batch_size, total_scan); in do_shrink_slab() local 545 shrinkctl->nr_to_scan = nr_to_scan; in do_shrink_slab() 546 shrinkctl->nr_scanned = nr_to_scan; in do_shrink_slab() 1655 static unsigned long isolate_lru_pages(unsigned long nr_to_scan, in isolate_lru_pages() argument 1670 scan < nr_to_scan && nr_taken < nr_to_scan && !list_empty(src); in isolate_lru_pages() 1730 trace_mm_vmscan_lru_isolate(sc->reclaim_idx, sc->order, nr_to_scan, in isolate_lru_pages() 1897 shrink_inactive_list(unsigned long nr_to_scan, struct lruvec *lruvec, in shrink_inactive_list() argument 1931 nr_taken = isolate_lru_pages(nr_to_scan, lruvec, &page_list, in shrink_inactive_list() 2074 static void shrink_active_list(unsigned long nr_to_scan, in shrink_active_list() argument 2100 nr_taken = isolate_lru_pages(nr_to_scan, lruvec, &l_hold, in shrink_active_list() [all …]
|
/Linux-v4.19/fs/xfs/ |
D | xfs_icache.c | 1236 int *nr_to_scan) in xfs_reclaim_inodes_ag() argument 1324 *nr_to_scan -= XFS_LOOKUP_BATCH; in xfs_reclaim_inodes_ag() 1328 } while (nr_found && !done && *nr_to_scan > 0); in xfs_reclaim_inodes_ag() 1345 if (skipped && (flags & SYNC_WAIT) && *nr_to_scan > 0) { in xfs_reclaim_inodes_ag() 1357 int nr_to_scan = INT_MAX; in xfs_reclaim_inodes() local 1359 return xfs_reclaim_inodes_ag(mp, mode, &nr_to_scan); in xfs_reclaim_inodes() 1374 int nr_to_scan) in xfs_reclaim_inodes_nr() argument 1380 return xfs_reclaim_inodes_ag(mp, SYNC_TRYLOCK | SYNC_WAIT, &nr_to_scan); in xfs_reclaim_inodes_nr()
|
D | xfs_icache.h | 56 long xfs_reclaim_inodes_nr(struct xfs_mount *mp, int nr_to_scan);
|
/Linux-v4.19/fs/f2fs/ |
D | shrinker.c | 81 unsigned long nr = sc->nr_to_scan; in f2fs_shrink_scan()
|
/Linux-v4.19/drivers/gpu/drm/msm/ |
D | msm_gem_shrinker.c | 89 if (freed >= sc->nr_to_scan) in msm_gem_shrinker_scan()
|
/Linux-v4.19/fs/nfs/ |
D | dir.c | 2132 nfs_do_access_cache_scan(unsigned int nr_to_scan) in nfs_do_access_cache_scan() argument 2143 if (nr_to_scan-- == 0) in nfs_do_access_cache_scan() 2174 int nr_to_scan = sc->nr_to_scan; in nfs_access_cache_scan() local 2179 return nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_scan() 2194 unsigned int nr_to_scan; in nfs_access_cache_enforce_limit() local 2198 nr_to_scan = 100; in nfs_access_cache_enforce_limit() 2200 if (diff < nr_to_scan) in nfs_access_cache_enforce_limit() 2201 nr_to_scan = diff; in nfs_access_cache_enforce_limit() 2202 nfs_do_access_cache_scan(nr_to_scan); in nfs_access_cache_enforce_limit()
|
/Linux-v4.19/fs/ubifs/ |
D | shrinker.c | 294 unsigned long nr = sc->nr_to_scan; in ubifs_shrink_scan()
|
/Linux-v4.19/drivers/staging/erofs/ |
D | utils.c | 221 unsigned long nr = sc->nr_to_scan; in erofs_shrink_scan()
|
/Linux-v4.19/include/trace/events/ |
D | ext4.h | 2382 TP_PROTO(struct super_block *sb, int nr_to_scan, int cache_cnt), 2384 TP_ARGS(sb, nr_to_scan, cache_cnt), 2388 __field( int, nr_to_scan ) 2394 __entry->nr_to_scan = nr_to_scan; 2400 __entry->nr_to_scan, __entry->cache_cnt) 2404 TP_PROTO(struct super_block *sb, int nr_to_scan, int cache_cnt), 2406 TP_ARGS(sb, nr_to_scan, cache_cnt) 2410 TP_PROTO(struct super_block *sb, int nr_to_scan, int cache_cnt), 2412 TP_ARGS(sb, nr_to_scan, cache_cnt)
|
/Linux-v4.19/drivers/staging/android/ |
D | ashmem.c | 462 if (--sc->nr_to_scan <= 0) in ashmem_shrink_scan() 794 .nr_to_scan = LONG_MAX, in ashmem_ioctl()
|
/Linux-v4.19/drivers/gpu/drm/ttm/ |
D | ttm_page_alloc.c | 384 int shrink_pages = sc->nr_to_scan; in ttm_pool_shrink_scan() 405 if (freed >= sc->nr_to_scan) in ttm_pool_shrink_scan()
|
/Linux-v4.19/drivers/md/ |
D | dm-bufio.c | 1576 static unsigned long __scan(struct dm_bufio_client *c, unsigned long nr_to_scan, in __scan() argument 1590 if (!--nr_to_scan || ((count - freed) <= retain_target)) in __scan() 1610 freed = __scan(c, sc->nr_to_scan, sc->gfp_mask); in dm_bufio_shrink_scan()
|
/Linux-v4.19/drivers/virtio/ |
D | virtio_balloon.c | 522 pages_to_free = sc->nr_to_scan * VIRTIO_BALLOON_PAGES_PER_PAGE; in virtio_balloon_shrinker_scan()
|