Home
last modified time | relevance | path

Searched refs:shrinker (Results 1 – 6 of 6) sorted by relevance

/include/linux/
Dshrinker.h82 struct shrinker { struct
83 unsigned long (*count_objects)(struct shrinker *, argument
85 unsigned long (*scan_objects)(struct shrinker *, argument
135 struct shrinker *shrinker_alloc(unsigned int flags, const char *fmt, ...);
136 void shrinker_register(struct shrinker *shrinker);
137 void shrinker_free(struct shrinker *shrinker);
139 static inline bool shrinker_try_get(struct shrinker *shrinker) in shrinker_try_get() argument
141 return refcount_inc_not_zero(&shrinker->refcount); in shrinker_try_get()
144 static inline void shrinker_put(struct shrinker *shrinker) in shrinker_put() argument
146 if (refcount_dec_and_test(&shrinker->refcount)) in shrinker_put()
[all …]
Dlist_lru.h63 struct lock_class_key *key, struct shrinker *shrinker);
67 #define list_lru_init_memcg(lru, shrinker) \ argument
68 __list_lru_init((lru), true, NULL, shrinker)
Djbd2.h884 struct shrinker *j_shrinker;
Dfs.h1366 struct shrinker *s_shrink; /* per-sb shrinker handle */
/include/trace/hooks/
Dvmscan.h63 TP_PROTO(struct shrinker *shrinker, long *freeable),
64 TP_ARGS(shrinker, freeable));
66 TP_PROTO(struct shrink_control *shrinkctl, struct shrinker *shrinker,
68 TP_ARGS(shrinkctl, shrinker, freeable, priority));
/include/trace/events/
Dvmscan.h200 TP_PROTO(struct shrinker *shr, struct shrink_control *sc,
209 __field(struct shrinker *, shr)
245 TP_PROTO(struct shrinker *shr, int nid, int shrinker_retval,
252 __field(struct shrinker *, shr)