Lines Matching refs:shrinker
30 * This makes freeing a cache, both from the shrinker and from the
42 * shrinker for the larger entries works more aggressively than
45 * The other shrinker frees the cache structures themselves.
153 * treated as one by the memory shrinker.
364 * invalid cache. Can also be called from a shrinker callback.
381 * shrinker callback.
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,
799 static struct shrinker nfs4_xattr_cache_shrinker = {
806 static struct shrinker nfs4_xattr_entry_shrinker = {
814 static struct shrinker nfs4_xattr_large_entry_shrinker = {
858 nfs4_xattr_cache_scan(struct shrinker *shrink, struct shrink_control *sc)
879 nfs4_xattr_cache_count(struct shrinker *shrink, struct shrink_control *sc)
939 nfs4_xattr_entry_scan(struct shrinker *shrink, struct shrink_control *sc)
969 nfs4_xattr_entry_count(struct shrinker *shrink, struct shrink_control *sc)
994 static int nfs4_xattr_shrinker_init(struct shrinker *shrinker,
999 ret = register_shrinker(shrinker, name);
1003 ret = list_lru_init_memcg(lru, shrinker);
1005 unregister_shrinker(shrinker);
1010 static void nfs4_xattr_shrinker_destroy(struct shrinker *shrinker,
1013 unregister_shrinker(shrinker);