Searched refs:shrinker (Results 1 - 25 of 78) sorted by path

1234

/linux-master/fs/ubifs/
H A Dshrinker.c12 * This file implements UBIFS shrinker which evicts clean znodes from the TNC
16 * would add additional overhead to the file system fast paths. So the shrinker
20 * also clean and old enough. So the shrinker walks the TNC in level order and
24 * The current shrinker first tries to evict old znodes, then young ones.
26 * Since the shrinker is global, it has to protect against races with FS
36 * We number each shrinker run and record the number on the ubifs_info structure
95 * after the commit, so the UBIFS shrinker does not report
267 unsigned long ubifs_shrink_count(struct shrinker *shrink,
279 unsigned long ubifs_shrink_scan(struct shrinker *shrink,
/linux-master/arch/x86/kvm/mmu/
H A Dmmu.c1716 * aggregate version in order to make the slab shrinker
6872 static unsigned long mmu_shrink_scan(struct shrinker *shrink,
6931 static unsigned long mmu_shrink_count(struct shrinker *shrink,
6937 static struct shrinker *mmu_shrinker;
/linux-master/drivers/android/
H A Dbinder_alloc.c1048 * binder_alloc_free_page() - shrinker callback to free pages
1124 binder_shrink_count(struct shrinker *shrink, struct shrink_control *sc)
1130 binder_shrink_scan(struct shrinker *shrink, struct shrink_control *sc)
1136 static struct shrinker *binder_shrinker;
/linux-master/drivers/gpu/drm/i915/gem/
H A Di915_gem_shrinker.c84 * This function is the main interface to the shrinker. It will try to release
96 * backing storage pins at the buffer object level) result in the shrinker code
289 i915_gem_shrinker_count(struct shrinker *shrinker, struct shrink_control *sc) argument
291 struct drm_i915_private *i915 = shrinker->private_data;
302 * the shrinker to fire, until it is worth the cost of freeing an
308 i915->mm.shrinker->batch =
309 max((i915->mm.shrinker->batch + avg) >> 1,
317 i915_gem_shrinker_scan(struct shrinker *shrinker, struc argument
[all...]
/linux-master/drivers/gpu/drm/i915/
H A Di915_drv.h166 struct shrinker *shrinker; member in struct:i915_gem_mm
168 /* shrinker accounting, also useful for userland debugging */
/linux-master/drivers/gpu/drm/msm/
H A Dmsm_drv.h148 * The dontneed LRU is considered by the shrinker for objects
211 struct shrinker *shrinker; member in struct:msm_drm_private
H A Dmsm_gem_shrinker.c35 msm_gem_shrinker_count(struct shrinker *shrinker, struct shrink_control *sc) argument
37 struct msm_drm_private *priv = shrinker->private_data;
100 msm_gem_shrinker_scan(struct shrinker *shrinker, struct shrink_control *sc) argument
102 struct msm_drm_private *priv = shrinker->private_data;
152 if (priv->shrinker)
153 ret = msm_gem_shrinker_scan(priv->shrinker, &sc);
161 * and if necessary the shrinker will be invoked again.
207 * msm_gem_shrinker_init - Initialize msm shrinker
[all...]
/linux-master/drivers/gpu/drm/panfrost/
H A Dpanfrost_device.h145 struct shrinker *shrinker; member in struct:panfrost_device
H A Dpanfrost_gem_shrinker.c19 panfrost_gem_shrinker_count(struct shrinker *shrinker, struct shrink_control *sc) argument
21 struct panfrost_device *pfdev = shrinker->private_data;
65 panfrost_gem_shrinker_scan(struct shrinker *shrinker, struct shrink_control *sc) argument
67 struct panfrost_device *pfdev = shrinker->private_data;
93 * panfrost_gem_shrinker_init - Initialize panfrost shrinker
96 * This function registers and sets up the panfrost shrinker.
102 pfdev->shrinker = shrinker_alloc(0, "drm-panfrost");
103 if (!pfdev->shrinker)
[all...]
/linux-master/drivers/gpu/drm/ttm/
H A Dttm_pool.c76 static struct shrinker *mm_shrinker;
258 /* Initialize and add a pool type to the global shrinker list */
273 /* Remove a pool_type from the global shrinker list and free all pages */
320 /* Free pages using the global shrinker list */
593 * This is useful to guarantee that all shrinker invocations have seen an
608 * shrinker.
627 * that no shrinker is concurrently freeing pages from the pool.
634 static unsigned long ttm_pool_shrinker_scan(struct shrinker *shrink,
647 static unsigned long ttm_pool_shrinker_count(struct shrinker *shrink,
764 /* Test the shrinker function
[all...]
/linux-master/drivers/md/bcache/
H A Dbcache.h547 struct shrinker *shrink;
H A Dbtree.c667 static unsigned long bch_mca_scan(struct shrinker *shrink,
734 static unsigned long bch_mca_count(struct shrinker *shrink,
833 pr_warn("bcache: %s: could not allocate shrinker\n", __func__);
/linux-master/drivers/md/
H A Ddm-bufio.c18 #include <linux/shrinker.h>
1004 struct shrinker *shrinker; member in struct:dm_bufio_client
2434 static unsigned long dm_bufio_shrink_scan(struct shrinker *shrink, struct shrink_control *sc)
2445 static unsigned long dm_bufio_shrink_count(struct shrinker *shrink, struct shrink_control *sc)
2560 c->shrinker = shrinker_alloc(0, "dm-bufio:(%u:%u)",
2562 if (!c->shrinker) {
2567 c->shrinker->count_objects = dm_bufio_shrink_count;
2568 c->shrinker->scan_objects = dm_bufio_shrink_scan;
2569 c->shrinker
[all...]
H A Ddm-zoned-metadata.c190 struct shrinker *mblk_shrinker;
613 * For mblock shrinker: get the number of unused metadata blocks in the cache.
615 static unsigned long dmz_mblock_shrinker_count(struct shrinker *shrink,
624 * For mblock shrinker: scan unused metadata blocks and shrink the cache.
626 static unsigned long dmz_mblock_shrinker_scan(struct shrinker *shrink,
2942 /* Metadata cache shrinker */
2948 dmz_zmd_err(zmd, "Allocate metadata cache shrinker failed");
H A Ddm-zoned.h22 #include <linux/shrinker.h>
H A Draid5.c7329 shrinker_free(conf->shrinker);
7374 static unsigned long raid5_cache_scan(struct shrinker *shrink,
7395 static unsigned long raid5_cache_count(struct shrinker *shrink,
7635 conf->shrinker = shrinker_alloc(0, "md-raid5:%s", mdname(mddev));
7636 if (!conf->shrinker) {
7638 pr_warn("md/raid:%s: couldn't allocate shrinker.\n",
7643 conf->shrinker->seeks = DEFAULT_SEEKS * conf->raid_disks * 4;
7644 conf->shrinker->scan_objects = raid5_cache_scan;
7645 conf->shrinker->count_objects = raid5_cache_count;
7646 conf->shrinker
[all...]
H A Draid5.h673 struct shrinker *shrinker; member in struct:r5conf
/linux-master/drivers/misc/
H A Dvmw_balloon.c381 * @shrinker: shrinker interface that is used to avoid over-inflation.
383 struct shrinker *shrinker; member in struct:vmballoon
1505 * @shrinker: pointer to the balloon shrinker.
1510 static unsigned long vmballoon_shrinker_scan(struct shrinker *shrinker, argument
1546 * @shrinker: pointer to the balloon shrinker
1552 vmballoon_shrinker_count(struct shrinker *shrinker, struct shrink_control *sc) argument
[all...]
/linux-master/drivers/virtio/
H A Dvirtio_balloon.c114 struct shrinker *shrinker; member in struct:virtio_balloon
855 static unsigned long virtio_balloon_shrinker_scan(struct shrinker *shrinker, argument
858 struct virtio_balloon *vb = shrinker->private_data;
863 static unsigned long virtio_balloon_shrinker_count(struct shrinker *shrinker, argument
866 struct virtio_balloon *vb = shrinker->private_data;
887 shrinker_free(vb->shrinker);
892 vb->shrinker
[all...]
/linux-master/drivers/xen/xenbus/
H A Dxenbus_probe_backend.c276 * Returns 0 always because we are using shrinker to only detect memory
279 static unsigned long backend_shrink_memory_count(struct shrinker *shrinker, argument
289 struct shrinker *backend_memory_shrinker;
306 pr_warn("shrinker allocation failed\n");
/linux-master/fs/bcachefs/
H A Dbcachefs.h201 #include <linux/shrinker.h>
368 "Disables the shrinker callback for the btree node cache")\
H A Dbtree_cache.c299 static unsigned long bch2_btree_cache_scan(struct shrinker *shrink,
397 static unsigned long bch2_btree_cache_count(struct shrinker *shrink,
466 struct shrinker *shrink;
H A Dbtree_key_cache.c826 static unsigned long bch2_btree_key_cache_scan(struct shrinker *shrink,
916 static unsigned long bch2_btree_key_cache_count(struct shrinker *shrink,
1015 struct shrinker *shrink;
H A Dbtree_key_cache_types.h20 struct shrinker *shrink;
H A Dbtree_types.h167 struct shrinker *shrink;

Completed in 402 milliseconds

1234