Home
last modified time | relevance | path

Searched refs:shrink (Results 1 – 25 of 67) sorted by relevance

123

/linux/scripts/
H A Dbloat-o-meter55 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 = \
91 (add, remove, grow, shrink, up, -down, up-down))
/linux/arch/powerpc/kernel/
H A Dtau_6xx.c117 int shrink; in tau_timeout() local
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()
/linux/fs/bcachefs/
H A Dbtree_key_cache.c593 static unsigned long bch2_btree_key_cache_scan(struct shrinker *shrink, in bch2_btree_key_cache_scan() argument
596 struct bch_fs *c = shrink->private_data; in bch2_btree_key_cache_scan()
672 static unsigned long bch2_btree_key_cache_count(struct shrinker *shrink, in bch2_btree_key_cache_count() argument
675 struct bch_fs *c = shrink->private_data; in bch2_btree_key_cache_count()
700 shrinker_free(bc->shrink); in bch2_fs_btree_key_cache_exit()
754 struct shrinker *shrink; in bch2_fs_btree_key_cache_init() local
769 shrink = shrinker_alloc(0, "%s-btree_key_cache", c->name); in bch2_fs_btree_key_cache_init()
770 if (!shrink) in bch2_fs_btree_key_cache_init()
772 bc->shrink = shrink; in bch2_fs_btree_key_cache_init()
773 shrink->count_objects = bch2_btree_key_cache_count; in bch2_fs_btree_key_cache_init()
[all …]
H A Dbtree_cache.c462 static unsigned long bch2_btree_cache_scan(struct shrinker *shrink, in bch2_btree_cache_scan() argument
465 struct btree_cache_list *list = shrink->private_data; in bch2_btree_cache_scan()
565 static unsigned long bch2_btree_cache_count(struct shrinker *shrink, in bch2_btree_cache_count() argument
568 struct btree_cache_list *list = shrink->private_data; in bch2_btree_cache_count()
582 shrinker_free(bc->live[1].shrink); in bch2_fs_btree_cache_exit()
583 shrinker_free(bc->live[0].shrink); in bch2_fs_btree_cache_exit()
640 struct shrinker *shrink; in bch2_fs_btree_cache_init() local
660 shrink = shrinker_alloc(0, "%s-btree_cache", c->name); in bch2_fs_btree_cache_init()
661 if (!shrink) in bch2_fs_btree_cache_init()
663 bc->live[0].shrink = shrink; in bch2_fs_btree_cache_init()
[all …]
H A Dbtree_key_cache_types.h11 struct shrinker *shrink; member
H A Dsysfs.c456 bc->live[0].shrink->scan_objects(bc->live[0].shrink, &sc); in STORE()
464 c->btree_key_cache.shrink->scan_objects(c->btree_key_cache.shrink, &sc); in STORE()
/linux/drivers/cpuidle/governors/
H A Dhaltpoll.c98 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/include/trace/events/
H A Dvmscan.h210 __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,
/linux/fs/
H A Dmbcache.c293 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()
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()
/linux/fs/nfsd/
H A Dnfscache.c41 static unsigned long nfsd_reply_cache_count(struct shrinker *shrink,
43 static unsigned long nfsd_reply_cache_scan(struct shrinker *shrink,
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()
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/fs/f2fs/
H A Dshrinker.c40 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
/linux/fs/ubifs/
H A Dshrinker.c267 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/drivers/gpu/drm/msm/
H A Dmsm_gem_shrinker.c105 bool (*shrink)(struct drm_gem_object *obj); in msm_gem_shrinker_scan() member
126 stages[i].shrink); in msm_gem_shrinker_scan()
/linux/samples/pktgen/
H A Dfunctions.sh187 local shrink
195 shrink=( $(grep -E -o "$sep{2,}" <<< $addr) )
/linux/drivers/md/bcache/
H A Dbtree.c667 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/fs/erofs/
H A Dzutil.c243 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
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_shmem.c104 const unsigned int shrink[] = { in shmem_sg_alloc_table() local
107 }, *s = shrink; in shmem_sg_alloc_table()
538 .shrink = shmem_shrink,
H A Di915_gem_object_types.h82 int (*shrink)(struct drm_i915_gem_object *obj, unsigned int flags); member
/linux/Documentation/filesystems/
H A Dbtrfs.rst34 * Online resize (shrink, grow)
/linux/Documentation/userspace-api/media/v4l/
H A Dselection-api-intro.rst8 shrink or enlarge it to an image of arbitrary size. Next, the devices
/linux/drivers/dax/
H A Dbus.c966 resource_size_t shrink; in dev_dax_shrink() local
968 shrink = min_t(u64, to_shrink, range_len(range)); in dev_dax_shrink()
969 if (shrink >= range_len(range)) { in dev_dax_shrink()
973 to_shrink -= shrink; in dev_dax_shrink()
990 - shrink); in dev_dax_shrink()
/linux/Documentation/virt/
H A Dguest-halt-polling.rst42 Division factor used to shrink per-cpu guest_halt_poll_ns when
/linux/include/drm/
H A Ddrm_gem.h559 bool (*shrink)(struct drm_gem_object *obj));
/linux/tools/mm/
H A Dslabinfo.c74 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()
1341 else if (shrink) in output_slabs()
1407 { "shrink", no_argument, NULL, 's' },
1485 shrink = 1; in main()
1520 && !validate && !shrink && !set_debug && !show_ops) in main()
/linux/drivers/gpu/drm/ttm/
H A Dttm_pool.c634 static unsigned long ttm_pool_shrinker_scan(struct shrinker *shrink, in ttm_pool_shrinker_scan() argument
647 static unsigned long ttm_pool_shrinker_count(struct shrinker *shrink, in ttm_pool_shrinker_count() argument

123