/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_shrinker.c | 40 unsigned long shrink, bool trylock_vm) in drop_pages() 45 if (shrink & I915_SHRINK_ACTIVE) in drop_pages() 47 if (!(shrink & I915_SHRINK_BOUND)) in drop_pages() 60 if (obj->ops->shrink) { in try_to_writeback() 69 return obj->ops->shrink(obj, shrink_flags); in try_to_writeback() 81 * @shrink: control flags for selecting cache types 91 * Therefore code that needs to explicitly shrink buffer objects caches (e.g. to 106 unsigned int shrink) in i915_gem_shrink() 127 trace_i915_gem_shrink(i915, target, shrink); in i915_gem_shrink() 134 if (shrink in i915_gem_shrink() 39 drop_pages(struct drm_i915_gem_object *obj, unsigned long shrink, bool trylock_vm) drop_pages() argument 102 i915_gem_shrink(struct i915_gem_ww_ctx *ww, struct drm_i915_private *i915, unsigned long target, unsigned long *nr_scanned, unsigned int shrink) i915_gem_shrink() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_shrinker.c | 40 unsigned long shrink) in unsafe_drop_pages() 45 if (shrink & I915_SHRINK_ACTIVE) in unsafe_drop_pages() 47 if (!(shrink & I915_SHRINK_BOUND)) in unsafe_drop_pages() 75 * @shrink: control flags for selecting cache types 85 * Therefore code that needs to explicitly shrink buffer objects caches (e.g. to 99 unsigned int shrink) in i915_gem_shrink() 116 trace_i915_gem_shrink(i915, target, shrink); in i915_gem_shrink() 123 if (shrink & I915_SHRINK_BOUND) { in i915_gem_shrink() 126 shrink &= ~I915_SHRINK_BOUND; in i915_gem_shrink() 133 * shrink th in i915_gem_shrink() 39 unsafe_drop_pages(struct drm_i915_gem_object *obj, unsigned long shrink) unsafe_drop_pages() argument 96 i915_gem_shrink(struct drm_i915_private *i915, unsigned long target, unsigned long *nr_scanned, unsigned int shrink) i915_gem_shrink() argument [all...] |
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | tau_6xx.c | 120 int shrink; in tau_timeout() local 132 /* do an exponential shrink of half the amount currently over size */ in tau_timeout() 133 shrink = (2 + size - min_window) / 4; in tau_timeout() 134 if (shrink) { in tau_timeout() 135 tau[cpu].low += shrink; in tau_timeout() 136 tau[cpu].high -= shrink; in tau_timeout() 184 /* set these to a reasonable value and let the timer shrink the in TAU_init_smp()
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | tau_6xx.c | 117 int shrink; in tau_timeout() local 129 /* do an exponential shrink of half the amount currently over size */ in tau_timeout() 130 shrink = (2 + size - min_window) / 4; in tau_timeout() 131 if (shrink) { in tau_timeout() 132 tau[cpu].low += shrink; in tau_timeout() 133 tau[cpu].high -= shrink; in tau_timeout() 181 /* set these to a reasonable value and let the timer shrink the in TAU_init_smp()
|
/kernel/linux/linux-5.10/drivers/cpuidle/governors/ |
H A D | haltpoll.c | 26 /* division factor to shrink halt_poll_ns */ 96 unsigned int shrink = guest_halt_poll_shrink; in adjust_poll_limit() local 99 if (shrink == 0) in adjust_poll_limit() 102 val /= shrink; in adjust_poll_limit()
|
/kernel/linux/linux-6.6/drivers/cpuidle/governors/ |
H A D | haltpoll.c | 27 /* division factor to shrink halt_poll_ns */ 98 unsigned int shrink = guest_halt_poll_shrink; in adjust_poll_limit() local 101 if (shrink == 0) in adjust_poll_limit() 104 val /= shrink; in adjust_poll_limit()
|
/kernel/linux/linux-5.10/fs/nfs/ |
H A D | nfs42xattr.c | 791 static unsigned long nfs4_xattr_cache_count(struct shrinker *shrink, 793 static unsigned long nfs4_xattr_entry_count(struct shrinker *shrink, 795 static unsigned long nfs4_xattr_cache_scan(struct shrinker *shrink, 797 static unsigned long nfs4_xattr_entry_scan(struct shrinker *shrink, 859 nfs4_xattr_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_cache_scan() argument 880 nfs4_xattr_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_cache_count() argument 940 nfs4_xattr_entry_scan(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_entry_scan() argument 947 lru = (shrink == &nfs4_xattr_large_entry_shrinker) ? in nfs4_xattr_entry_scan() 970 nfs4_xattr_entry_count(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_entry_count() argument 975 lru = (shrink in nfs4_xattr_entry_count() [all...] |
/kernel/linux/linux-6.6/fs/nfs/ |
H A D | nfs42xattr.c | 790 static unsigned long nfs4_xattr_cache_count(struct shrinker *shrink, 792 static unsigned long nfs4_xattr_entry_count(struct shrinker *shrink, 794 static unsigned long nfs4_xattr_cache_scan(struct shrinker *shrink, 796 static unsigned long nfs4_xattr_entry_scan(struct shrinker *shrink, 858 nfs4_xattr_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_cache_scan() argument 879 nfs4_xattr_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_cache_count() argument 939 nfs4_xattr_entry_scan(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_entry_scan() argument 946 lru = (shrink == &nfs4_xattr_large_entry_shrinker) ? in nfs4_xattr_entry_scan() 969 nfs4_xattr_entry_count(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_entry_count() argument 974 lru = (shrink in nfs4_xattr_entry_count() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
H A D | i915_globals.c | 40 global->shrink(); in i915_globals_shrink() 74 GEM_BUG_ON(!global->shrink); in i915_global_register()
|
H A D | i915_globals.h | 17 i915_global_func_t shrink; member
|
/kernel/linux/linux-5.10/fs/nfsd/ |
H A D | nfscache.c | 41 static unsigned long nfsd_reply_cache_count(struct shrinker *shrink, 43 static unsigned long nfsd_reply_cache_scan(struct shrinker *shrink, 272 nfsd_reply_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_count() argument 274 struct nfsd_net *nn = container_of(shrink, in nfsd_reply_cache_count() 281 nfsd_reply_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_scan() argument 283 struct nfsd_net *nn = container_of(shrink, in nfsd_reply_cache_scan()
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | vmscan.h | 196 __field(void *, shrink) 208 __entry->shrink = shr->scan_objects; 218 TP_printk("%pS %p: nid: %d objects to shrink %ld gfp_flags %s cache items %ld delta %lld total_scan %ld priority %d", 219 __entry->shrink, 240 __field(void *, shrink) 250 __entry->shrink = shr->scan_objects; 258 __entry->shrink,
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | vmscan.h | 210 __field(void *, shrink) 222 __entry->shrink = shr->scan_objects; 232 TP_printk("%pS %p: nid: %d objects to shrink %ld gfp_flags %s cache items %ld delta %lld total_scan %ld priority %d", 233 __entry->shrink, 254 __field(void *, shrink) 264 __entry->shrink = shr->scan_objects; 272 __entry->shrink,
|
/kernel/linux/linux-5.10/drivers/staging/android/ion/ |
H A D | ion_heap.c | 243 if (heap->ops->shrink) in ion_heap_shrink_count() 244 total += heap->ops->shrink(heap, sc->gfp_mask, 0); in ion_heap_shrink_count() 261 * shrink the free list first, no point in zeroing the memory if we're in ion_heap_shrink_scan() 272 if (heap->ops->shrink) in ion_heap_shrink_scan() 273 freed += heap->ops->shrink(heap, sc->gfp_mask, to_scan); in ion_heap_shrink_scan()
|
/kernel/linux/linux-6.6/fs/ |
H A D | mbcache.c | 293 static unsigned long mb_cache_count(struct shrinker *shrink, in mb_cache_count() argument 296 struct mb_cache *cache = container_of(shrink, struct mb_cache, in mb_cache_count() 333 static unsigned long mb_cache_scan(struct shrinker *shrink, in mb_cache_scan() argument 336 struct mb_cache *cache = container_of(shrink, struct mb_cache, in mb_cache_scan() 341 /* We shrink 1/X of the cache when we have too many entries in it */
|
/kernel/linux/linux-5.10/mm/ |
H A D | zpool.c | 186 zpool->evictable = driver->shrink && ops && ops->evict; in zpool_create_pool() 302 * @zpool: The zpool to shrink. 303 * @pages: The number of pages to shrink the pool. 306 * This attempts to shrink the actual memory size of the pool 320 return zpool->driver->shrink ? in zpool_shrink() 321 zpool->driver->shrink(zpool->pool, pages, reclaimed) : -EINVAL; in zpool_shrink() 385 * zpool_ops.evict and its driver implements struct zpool_driver.shrink. 388 * in its implementation of zpool_driver.shrink. It could do internal
|
/kernel/linux/linux-5.10/fs/f2fs/ |
H A D | shrinker.c | 37 unsigned long f2fs_shrink_count(struct shrinker *shrink, in f2fs_shrink_count() argument 73 unsigned long f2fs_shrink_scan(struct shrinker *shrink, in f2fs_shrink_scan() argument 102 /* shrink extent cache entries */ in f2fs_shrink_scan() 105 /* shrink clean nat cache entries */ in f2fs_shrink_scan() 109 /* shrink free nids cache entries */ in f2fs_shrink_scan()
|
/kernel/linux/linux-6.6/fs/f2fs/ |
H A D | shrinker.c | 40 unsigned long f2fs_shrink_count(struct shrinker *shrink, in f2fs_shrink_count() argument 79 unsigned long f2fs_shrink_scan(struct shrinker *shrink, in f2fs_shrink_scan() argument 108 /* shrink extent cache entries */ in f2fs_shrink_scan() 111 /* shrink read extent cache entries */ in f2fs_shrink_scan() 114 /* shrink clean nat cache entries */ in f2fs_shrink_scan() 118 /* shrink free nids cache entries */ in f2fs_shrink_scan()
|
/kernel/linux/linux-6.6/fs/xfs/ |
H A D | xfs_icache.c | 2165 struct shrinker *shrink, in xfs_inodegc_shrinker_count() 2168 struct xfs_mount *mp = container_of(shrink, struct xfs_mount, in xfs_inodegc_shrinker_count() 2187 struct shrinker *shrink, in xfs_inodegc_shrinker_scan() 2190 struct xfs_mount *mp = container_of(shrink, struct xfs_mount, in xfs_inodegc_shrinker_scan() 2227 struct shrinker *shrink = &mp->m_inodegc_shrinker; in xfs_inodegc_register_shrinker() local 2229 shrink->count_objects = xfs_inodegc_shrinker_count; in xfs_inodegc_register_shrinker() 2230 shrink->scan_objects = xfs_inodegc_shrinker_scan; in xfs_inodegc_register_shrinker() 2231 shrink->seeks = 0; in xfs_inodegc_register_shrinker() 2232 shrink->flags = SHRINKER_NONSLAB; in xfs_inodegc_register_shrinker() 2233 shrink in xfs_inodegc_register_shrinker() 2164 xfs_inodegc_shrinker_count( struct shrinker *shrink, struct shrink_control *sc) xfs_inodegc_shrinker_count() argument 2186 xfs_inodegc_shrinker_scan( struct shrinker *shrink, struct shrink_control *sc) xfs_inodegc_shrinker_scan() argument [all...] |
/kernel/linux/linux-6.6/fs/nfsd/ |
H A D | nfscache.c | 41 static unsigned long nfsd_reply_cache_count(struct shrinker *shrink, 43 static unsigned long nfsd_reply_cache_scan(struct shrinker *shrink, 315 * @shrink: our registered shrinker context 324 nfsd_reply_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_count() argument 326 struct nfsd_net *nn = container_of(shrink, in nfsd_reply_cache_count() 334 * @shrink: our registered shrinker context 344 nfsd_reply_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_scan() argument 346 struct nfsd_net *nn = container_of(shrink, in nfsd_reply_cache_scan()
|
/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | shrinker.c | 49 * shrink_tnc - shrink TNC tree. 135 * shrink_tnc_trees - shrink UBIFS TNC trees. 155 /* Iterate over all mounted UBIFS file-systems and try to shrink them */ in shrink_tnc_trees() 267 unsigned long ubifs_shrink_count(struct shrinker *shrink, in ubifs_shrink_count() argument 279 unsigned long ubifs_shrink_scan(struct shrinker *shrink, in ubifs_shrink_scan() argument
|
/kernel/linux/linux-6.6/fs/ubifs/ |
H A D | shrinker.c | 49 * shrink_tnc - shrink TNC tree. 135 * shrink_tnc_trees - shrink UBIFS TNC trees. 155 /* Iterate over all mounted UBIFS file-systems and try to shrink them */ in shrink_tnc_trees() 267 unsigned long ubifs_shrink_count(struct shrinker *shrink, in ubifs_shrink_count() argument 279 unsigned long ubifs_shrink_scan(struct shrinker *shrink, in ubifs_shrink_scan() argument
|
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/ |
H A D | msm_gem_shrinker.c | 107 bool (*shrink)(struct drm_gem_object *obj); in msm_gem_shrinker_scan() 128 stages[i].shrink); in msm_gem_shrinker_scan()
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | reservations.c | 661 unsigned int shrink; in ocfs2_cannibalize_resv() local 663 shrink = min_bits; in ocfs2_cannibalize_resv() 665 shrink = lru_resv->r_len / 2; in ocfs2_cannibalize_resv() 667 lru_resv->r_len -= shrink; in ocfs2_cannibalize_resv() 670 resv->r_len = shrink; in ocfs2_cannibalize_resv()
|
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | reservations.c | 657 unsigned int shrink; in ocfs2_cannibalize_resv() local 659 shrink = min_bits; in ocfs2_cannibalize_resv() 661 shrink = lru_resv->r_len / 2; in ocfs2_cannibalize_resv() 663 lru_resv->r_len -= shrink; in ocfs2_cannibalize_resv() 666 resv->r_len = shrink; in ocfs2_cannibalize_resv()
|