| /linux/include/linux/ |
| H A D | shrinker.h | 82 struct shrinker { struct 83 unsigned long (*count_objects)(struct shrinker *, argument 85 unsigned long (*scan_objects)(struct shrinker *, argument 93 * The reference count of this shrinker. Registered shrinker have an argument 108 /* ID in shrinker_idr */ argument 129 * It just makes sense when the shrinker is also MEMCG_AWARE for now, argument 139 static inline bool shrinker_try_get(struct shrinker *shrinker) in shrinker_try_get() 144 static inline void shrinker_put(struct shrinker *shrinker) in shrinker_put() 155 int shrinker_debugfs_rename(struct shrinker *shrinker, const char *fmt, ...) in shrinker_debugfs_rename()
|
| H A D | memcontrol.h | 1623 static inline int shrinker_id(struct shrinker *shrinker) in shrinker_id() 1659 static inline int shrinker_id(struct shrinker *shrinker) in shrinker_id()
|
| /linux/mm/ |
| H A D | shrinker.c | 216 static int shrinker_memcg_alloc(struct shrinker *shrinker) in shrinker_memcg_alloc() 241 static void shrinker_memcg_remove(struct shrinker *shrinker) in shrinker_memcg_remove() 252 static long xchg_nr_deferred_memcg(int nid, struct shrinker *shrinker, in xchg_nr_deferred_memcg() 268 static long add_nr_deferred_memcg(long nr, int nid, struct shrinker *shrinker, in add_nr_deferred_memcg() 314 static int shrinker_memcg_alloc(struct shrinker *shrinker) in shrinker_memcg_alloc() 319 static void shrinker_memcg_remove(struct shrinker *shrinker) in shrinker_memcg_remove() 323 static long xchg_nr_deferred_memcg(int nid, struct shrinker *shrinker, in xchg_nr_deferred_memcg() 329 static long add_nr_deferred_memcg(long nr, int nid, struct shrinker *shrinker, in add_nr_deferred_memcg() 336 static long xchg_nr_deferred(struct shrinker *shrinker, in xchg_nr_deferred() 353 static long add_nr_deferred(long nr, struct shrinker *shrinker, in add_nr_deferred() [all …]
|
| H A D | internal.h | 1587 struct shrinker *shrinker, const char *fmt, va_list ap) in shrinker_debugfs_name_alloc() 1594 static inline void shrinker_debugfs_name_free(struct shrinker *shrinker) in shrinker_debugfs_name_free() 1606 static inline int shrinker_debugfs_add(struct shrinker *shrinker) in shrinker_debugfs_add() 1610 static inline int shrinker_debugfs_name_alloc(struct shrinker *shrinker, in shrinker_debugfs_name_alloc() 1615 static inline void shrinker_debugfs_name_free(struct shrinker *shrinker) in shrinker_debugfs_name_free() 1618 static inline struct dentry *shrinker_debugfs_detach(struct shrinker *shrinker, in shrinker_debugfs_detach()
|
| H A D | workingset.c | 640 static unsigned long count_shadow_nodes(struct shrinker *shrinker, in count_shadow_nodes() 767 static unsigned long scan_shadow_nodes(struct shrinker *shrinker, in scan_shadow_nodes()
|
| H A D | zswap.c | 1187 static unsigned long zswap_shrinker_scan(struct shrinker *shrinker, in zswap_shrinker_scan() 1208 static unsigned long zswap_shrinker_count(struct shrinker *shrinker, in zswap_shrinker_count() 1282 struct shrinker *shrinker; in zswap_alloc_shrinker() local
|
| H A D | zsmalloc.c | 207 struct shrinker *shrinker; member 1939 static unsigned long zs_shrinker_scan(struct shrinker *shrinker, in zs_shrinker_scan() 1955 static unsigned long zs_shrinker_count(struct shrinker *shrinker, in zs_shrinker_count()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_shrinker.c | 49 xe_shrinker_mod_pages(struct xe_shrinker *shrinker, long shrinkable, long purgeable) in xe_shrinker_mod_pages() 141 struct xe_shrinker *shrinker = to_xe_shrinker(shrink); in xe_shrinker_count() local 166 static bool xe_shrinker_runtime_pm_get(struct xe_shrinker *shrinker, bool force, in xe_shrinker_runtime_pm_get() 195 static void xe_shrinker_runtime_pm_put(struct xe_shrinker *shrinker, bool runtime_pm) in xe_shrinker_runtime_pm_put() 203 struct xe_shrinker *shrinker = to_xe_shrinker(shrink); in xe_shrinker_scan() local 259 struct xe_shrinker *shrinker = in xe_shrinker_pm() local 268 struct xe_shrinker *shrinker = arg; in xe_shrinker_fini() local 285 struct xe_shrinker *shrinker = kzalloc(sizeof(*shrinker), GFP_KERNEL); in xe_shrinker_create() local
|
| H A D | xe_device_types.h | 374 struct xe_shrinker *shrinker; global() member
|
| /linux/drivers/virtio/ |
| H A D | virtio_balloon.c | 114 struct shrinker *shrinker; member 893 static unsigned long virtio_balloon_shrinker_scan(struct shrinker *shrinker, in virtio_balloon_shrinker_scan() 901 static unsigned long virtio_balloon_shrinker_count(struct shrinker *shrinker, in virtio_balloon_shrinker_count()
|
| /linux/drivers/xen/xenbus/ |
| H A D | xenbus_probe_backend.c | 279 static unsigned long backend_shrink_memory_count(struct shrinker *shrinker, in backend_shrink_memory_count()
|
| /linux/drivers/misc/ |
| H A D | vmw_balloon.c | 383 struct shrinker *shrinker; member 1510 static unsigned long vmballoon_shrinker_scan(struct shrinker *shrinker, in vmballoon_shrinker_scan() 1552 static unsigned long vmballoon_shrinker_count(struct shrinker *shrinker, in vmballoon_shrinker_count()
|
| /linux/fs/btrfs/ |
| H A D | compression.c | 172 struct shrinker *shrinker; member
|