Lines Matching defs:shrinker
127 /* Enable/disable memory pressure-based shrinker. */
178 static struct shrinker *zswap_shrinker;
191 * logic if referenced is unset. See comments in the shrinker
763 * Since the global shrinker shrink_worker() may hold a reference
772 /* lock out zswap shrinker walking memcg tree */
1089 * shrinker. We generally writeback cold folios from zswap, and
1091 * For unlikely concurrent shrinker case, it will be unlinked
1092 * and freed when invalidated by the concurrent shrinker anyway.
1146 * shrinker functions
1149 * The dynamic shrinker is modulated by the following factors:
1151 * 1. Each zswap entry has a referenced bit, which the shrinker unsets (giving
1153 * entry is considered again by the shrinker, with its referenced bit unset,
1209 * again immediately, almost never happen for this shrinker.
1238 * shrinker context).
1251 static unsigned long zswap_shrinker_scan(struct shrinker *shrinker,
1272 static unsigned long zswap_shrinker_count(struct shrinker *shrinker,
1286 * The shrinker resumes swap writeback, which will enter block
1344 static struct shrinker *zswap_alloc_shrinker(void)
1346 struct shrinker *shrinker;
1348 shrinker =
1350 if (!shrinker)
1353 shrinker->scan_objects = zswap_shrinker_scan;
1354 shrinker->count_objects = zswap_shrinker_count;
1355 shrinker->batch = 0;
1356 shrinker->seeks = DEFAULT_SEEKS;
1357 return shrinker;