/linux-6.15/drivers/gpu/drm/xe/ |
D | xe_shrinker.c | 22 * @shrink: Pointer to the mm shrinker. 30 struct shrinker *shrink; member 34 static struct xe_shrinker *to_xe_shrinker(struct shrinker *shrink) in to_xe_shrinker() argument 36 return shrink->private_data; in to_xe_shrinker() 90 xe_shrinker_count(struct shrinker *shrink, struct shrink_control *sc) in xe_shrinker_count() argument 92 struct xe_shrinker *shrinker = to_xe_shrinker(shrink); in xe_shrinker_count() 152 static unsigned long xe_shrinker_scan(struct shrinker *shrink, struct shrink_control *sc) in xe_shrinker_scan() argument 154 struct xe_shrinker *shrinker = to_xe_shrinker(shrink); in xe_shrinker_scan() 230 shrinker->shrink = shrinker_alloc(0, "drm-xe_gem:%s", xe->drm.unique); in xe_shrinker_create() 231 if (!shrinker->shrink) { in xe_shrinker_create() [all …]
|
/linux-6.15/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.15/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.15/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.15/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.15/fs/bcachefs/ |
D | btree_key_cache.c | 645 static unsigned long bch2_btree_key_cache_scan(struct shrinker *shrink, in bch2_btree_key_cache_scan() argument 648 struct bch_fs *c = shrink->private_data; in bch2_btree_key_cache_scan() 724 static unsigned long bch2_btree_key_cache_count(struct shrinker *shrink, in bch2_btree_key_cache_count() argument 727 struct bch_fs *c = shrink->private_data; in bch2_btree_key_cache_count() 752 shrinker_free(bc->shrink); in bch2_fs_btree_key_cache_exit() 805 struct shrinker *shrink; in bch2_fs_btree_key_cache_init() local 820 shrink = shrinker_alloc(0, "%s-btree_key_cache", c->name); in bch2_fs_btree_key_cache_init() 821 if (!shrink) in bch2_fs_btree_key_cache_init() 823 bc->shrink = shrink; in bch2_fs_btree_key_cache_init() 824 shrink->count_objects = bch2_btree_key_cache_count; in bch2_fs_btree_key_cache_init() [all …]
|
D | btree_cache.c | 464 static unsigned long bch2_btree_cache_scan(struct shrinker *shrink, in bch2_btree_cache_scan() argument 467 struct btree_cache_list *list = shrink->private_data; in bch2_btree_cache_scan() 567 static unsigned long bch2_btree_cache_count(struct shrinker *shrink, in bch2_btree_cache_count() argument 570 struct btree_cache_list *list = shrink->private_data; in bch2_btree_cache_count() 584 shrinker_free(bc->live[1].shrink); in bch2_fs_btree_cache_exit() 585 shrinker_free(bc->live[0].shrink); in bch2_fs_btree_cache_exit() 643 struct shrinker *shrink; in bch2_fs_btree_cache_init() local 663 shrink = shrinker_alloc(0, "%s-btree_cache", c->name); in bch2_fs_btree_cache_init() 664 if (!shrink) in bch2_fs_btree_cache_init() 666 bc->live[0].shrink = shrink; in bch2_fs_btree_cache_init() [all …]
|
D | btree_key_cache_types.h | 11 struct shrinker *shrink; member
|
/linux-6.15/drivers/android/ |
D | dbitmap.h | 11 * A dbitmap can grow or shrink as needed. This part has been designed 14 * are verified to determine if the grow or shrink is sill valid. 42 /* Returns the nbits that a dbitmap can shrink to, 0 if not possible. */ 51 * Determine if the bitmap can shrink based on the position of in dbitmap_shrink_nbits() 54 * bitmap should shrink to half its current size. in dbitmap_shrink_nbits()
|
/linux-6.15/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.15/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.15/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.15/mm/ |
D | shrinker.c | 480 * lockless algorithm of memcg shrink. in shrink_slab_memcg() 491 * So in the memcg shrink: in shrink_slab_memcg() 505 * Note: here is different from the global shrink, we don't in shrink_slab_memcg() 595 * shrink_slab - shrink slab caches 601 * Call the shrink functions to age shrinkable caches. 624 * shrink, but skip global shrink. This may result in premature in shrink_slab() 631 * lockless algorithm of global shrink. in shrink_slab() 637 * So in the global shrink: in shrink_slab()
|
/linux-6.15/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.15/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.15/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, 296 * @shrink: our registered shrinker context 305 nfsd_reply_cache_count(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_count() argument 307 struct nfsd_net *nn = shrink->private_data; in nfsd_reply_cache_count() 314 * @shrink: our registered shrinker context 324 nfsd_reply_cache_scan(struct shrinker *shrink, struct shrink_control *sc) in nfsd_reply_cache_scan() argument 326 struct nfsd_net *nn = shrink->private_data; in nfsd_reply_cache_scan()
|
/linux-6.15/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.15/include/uapi/linux/ |
D | virtio_mem.h | 67 * "requested_size" and will grow dynamically. It will only shrink when 103 /* request to unplug all blocks and shrink the usable size */ 203 * shrink due to VIRTIO_MEM_REQ_UNPLUG_ALL (in which case no config
|
/linux-6.15/fs/erofs/ |
D | zutil.c | 243 static unsigned long erofs_shrink_count(struct shrinker *shrink, in erofs_shrink_count() argument 249 static unsigned long erofs_shrink_scan(struct shrinker *shrink, in erofs_shrink_scan() argument 264 /* Iterate over all mounted superblocks and try to shrink them */ in erofs_shrink_scan()
|
/linux-6.15/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.15/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.15/drivers/md/dm-vdo/ |
D | int-map.h | 21 * shrink as entries are removed.
|
/linux-6.15/Documentation/filesystems/ |
D | btrfs.rst | 34 * Online resize (shrink, grow)
|
/linux-6.15/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.15/Documentation/userspace-api/media/v4l/ |
D | selection-api-intro.rst | 8 shrink or enlarge it to an image of arbitrary size. Next, the devices
|