/linux-6.8/drivers/gpu/drm/i915/gem/ |
D | i915_gem_shrinker.c | 41 unsigned long shrink, bool trylock_vm) in drop_pages() argument 46 if (shrink & I915_SHRINK_ACTIVE) in drop_pages() 48 if (!(shrink & I915_SHRINK_BOUND)) in drop_pages() 61 if (obj->ops->shrink) { in try_to_writeback() 70 return obj->ops->shrink(obj, shrink_flags); in try_to_writeback() 77 * i915_gem_shrink - Shrink buffer object caches 82 * @shrink: control flags for selecting cache types 92 * Therefore code that needs to explicitly shrink buffer objects caches (e.g. to 107 unsigned int shrink) in i915_gem_shrink() argument 129 trace_i915_gem_shrink(i915, target, shrink); in i915_gem_shrink() [all …]
|
/linux-6.8/scripts/ |
D | bloat-o-meter | 55 grow, shrink, add, remove, up, down = 0, 0, 0, 0, 0, 0 80 if d<0: shrink, down = shrink+1, down-d 84 return grow, shrink, add, remove, up, down, delta, old, new, otot, ntot 87 grow, shrink, add, remove, up, down, delta, old, new, otot, ntot = \ 90 print("add/remove: %s/%s grow/shrink: %s/%s up/down: %s/%s (%s)" % \ 91 (add, remove, grow, shrink, up, -down, up-down))
|
/linux-6.8/fs/f2fs/ |
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()
|
/linux-6.8/arch/powerpc/kernel/ |
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()
|
/linux-6.8/drivers/cpuidle/governors/ |
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()
|
/linux-6.8/fs/bcachefs/ |
D | btree_key_cache.c | 822 static unsigned long bch2_btree_key_cache_scan(struct shrinker *shrink, in bch2_btree_key_cache_scan() argument 825 struct bch_fs *c = shrink->private_data; in bch2_btree_key_cache_scan() 923 static unsigned long bch2_btree_key_cache_count(struct shrinker *shrink, in bch2_btree_key_cache_count() argument 926 struct bch_fs *c = shrink->private_data; in bch2_btree_key_cache_count() 946 shrinker_free(bc->shrink); in bch2_fs_btree_key_cache_exit() 1020 struct shrinker *shrink; in bch2_fs_btree_key_cache_init() local 1033 shrink = shrinker_alloc(0, "%s-btree_key_cache", c->name); in bch2_fs_btree_key_cache_init() 1034 if (!shrink) in bch2_fs_btree_key_cache_init() 1036 bc->shrink = shrink; in bch2_fs_btree_key_cache_init() 1037 shrink->seeks = 0; in bch2_fs_btree_key_cache_init() [all …]
|
D | btree_cache.c | 286 static unsigned long bch2_btree_cache_scan(struct shrinker *shrink, in bch2_btree_cache_scan() argument 289 struct bch_fs *c = shrink->private_data; in bch2_btree_cache_scan() 384 static unsigned long bch2_btree_cache_count(struct shrinker *shrink, in bch2_btree_cache_count() argument 387 struct bch_fs *c = shrink->private_data; in bch2_btree_cache_count() 402 shrinker_free(bc->shrink); in bch2_fs_btree_cache_exit() 453 struct shrinker *shrink; in bch2_fs_btree_cache_init() local 473 shrink = shrinker_alloc(0, "%s-btree_cache", c->name); in bch2_fs_btree_cache_init() 474 if (!shrink) in bch2_fs_btree_cache_init() 476 bc->shrink = shrink; in bch2_fs_btree_cache_init() 477 shrink->count_objects = bch2_btree_cache_count; in bch2_fs_btree_cache_init() [all …]
|
D | btree_key_cache_types.h | 20 struct shrinker *shrink; member
|
/linux-6.8/fs/erofs/ |
D | utils.c | 32 /* global shrink count (for all mounted EROFS instances) */ 160 /* try to shrink each valid workgroup */ in erofs_shrink_workstation() 206 static unsigned long erofs_shrink_count(struct shrinker *shrink, in erofs_shrink_count() argument 212 static unsigned long erofs_shrink_scan(struct shrinker *shrink, in erofs_shrink_scan() argument 227 /* Iterate over all mounted superblocks and try to shrink them */ in erofs_shrink_scan()
|
/linux-6.8/include/trace/events/ |
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_sca… 233 __entry->shrink, 254 __field(void *, shrink) 264 __entry->shrink = shr->scan_objects; 272 __entry->shrink,
|
/linux-6.8/samples/pktgen/ |
D | functions.sh | 187 local shrink 194 # if shrink '::' occurs multiple, it's malformed. 195 shrink=( $(grep -E -o "$sep{2,}" <<< $addr) ) 196 if [[ ${#shrink[@]} -ne 0 ]]; then 197 if [[ ${#shrink[@]} -gt 1 || ( ${shrink[0]} != $sep2 ) ]]; then
|
/linux-6.8/mm/ |
D | shrinker.c | 478 * lockless algorithm of memcg shrink. in shrink_slab_memcg() 489 * So in the memcg shrink: in shrink_slab_memcg() 503 * Note: here is different from the global shrink, we don't in shrink_slab_memcg() 593 * shrink_slab - shrink slab caches 599 * Call the shrink functions to age shrinkable caches. 622 * shrink, but skip global shrink. This may result in premature in shrink_slab() 629 * lockless algorithm of global shrink. in shrink_slab() 635 * So in the global shrink: in shrink_slab()
|
/linux-6.8/fs/ |
D | mbcache.c | 293 static unsigned long mb_cache_count(struct shrinker *shrink, in mb_cache_count() argument 296 struct mb_cache *cache = shrink->private_data; in mb_cache_count() 301 /* Shrink number of entries in cache */ 332 static unsigned long mb_cache_scan(struct shrinker *shrink, in mb_cache_scan() argument 335 struct mb_cache *cache = shrink->private_data; in mb_cache_scan() 339 /* We shrink 1/X of the cache when we have too many entries in it */
|
/linux-6.8/fs/ubifs/ |
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
|
/linux-6.8/fs/nfsd/ |
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, 318 * @shrink: our registered shrinker context 327 nfsd_reply_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_count() argument 329 struct nfsd_net *nn = shrink->private_data; in nfsd_reply_cache_count() 336 * @shrink: our registered shrinker context 346 nfsd_reply_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_scan() argument 348 struct nfsd_net *nn = shrink->private_data; in nfsd_reply_cache_scan()
|
/linux-6.8/fs/nfs/ |
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, 839 nfs4_xattr_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_cache_scan() argument 860 nfs4_xattr_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_cache_count() argument 920 nfs4_xattr_entry_scan(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_entry_scan() argument 927 lru = (shrink == nfs4_xattr_large_entry_shrinker) ? in nfs4_xattr_entry_scan() 950 nfs4_xattr_entry_count(struct shrinker *shrink, struct shrink_control *sc) in nfs4_xattr_entry_count() argument 955 lru = (shrink == nfs4_xattr_large_entry_shrinker) ? in nfs4_xattr_entry_count()
|
/linux-6.8/include/uapi/linux/ |
D | virtio_mem.h | 67 * "requested_size" and will grow dynamically. It will only shrink when 101 /* request to unplug all blocks and shrink the usable size */ 201 * shrink due to VIRTIO_MEM_REQ_UNPLUG_ALL (in which case no config
|
/linux-6.8/fs/ocfs2/ |
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()
|
/linux-6.8/drivers/gpu/drm/msm/ |
D | msm_gem_shrinker.c | 105 bool (*shrink)(struct drm_gem_object *obj); in msm_gem_shrinker_scan() member 126 stages[i].shrink); in msm_gem_shrinker_scan()
|
/linux-6.8/Documentation/filesystems/ |
D | btrfs.rst | 34 * Online resize (shrink, grow)
|
/linux-6.8/tools/testing/selftests/bpf/progs/ |
D | test_xdp_adjust_tail_shrink.c | 22 offset = 256; /* shrink too much */ in _xdp_adjust_tail_shrink()
|
/linux-6.8/Documentation/userspace-api/media/v4l/ |
D | selection-api-intro.rst | 8 shrink or enlarge it to an image of arbitrary size. Next, the devices
|
/linux-6.8/drivers/md/bcache/ |
D | btree.c | 667 static unsigned long bch_mca_scan(struct shrinker *shrink, in bch_mca_scan() argument 670 struct cache_set *c = shrink->private_data; in bch_mca_scan() 734 static unsigned long bch_mca_count(struct shrinker *shrink, in bch_mca_count() argument 737 struct cache_set *c = shrink->private_data; in bch_mca_count() 755 if (c->shrink) in bch_btree_cache_free() 756 shrinker_free(c->shrink); in bch_btree_cache_free() 831 c->shrink = shrinker_alloc(0, "md-bcache:%pU", c->set_uuid); in bch_btree_cache_alloc() 832 if (!c->shrink) { in bch_btree_cache_alloc() 837 c->shrink->count_objects = bch_mca_count; in bch_btree_cache_alloc() 838 c->shrink->scan_objects = bch_mca_scan; in bch_btree_cache_alloc() [all …]
|
/linux-6.8/tools/mm/ |
D | slabinfo.c | 74 int shrink; variable 130 "-s|--shrink Shrink slabs\n" in usage() 332 set_obj(s, "shrink", 1); in slab_shrink() 736 set_obj(s, "shrink", 1); in slab_empty() 1339 else if (shrink) in output_slabs() 1405 { "shrink", no_argument, NULL, 's' }, 1483 shrink = 1; in main() 1518 && !validate && !shrink && !set_debug && !show_ops) in main()
|
/linux-6.8/fs/reiserfs/ |
D | objectid.c | 126 * odd sequence, and can shrink oids? in reiserfs_release_objectid() 129 /* shrink objectid map */ in reiserfs_release_objectid()
|