Lines Matching defs:shrinker
145 /* Enable/disable memory pressure-based shrinker. */
193 static struct shrinker *zswap_shrinker;
802 /* lock out zswap shrinker walking memcg tree */
1146 * shrinker. We generally writeback cold folios from zswap, and
1148 * For unlikely concurrent shrinker case, it will be unlinked
1149 * and freed when invalidated by the concurrent shrinker anyway.
1201 * shrinker functions
1232 * again immediately, almost never happen for this shrinker.
1261 * shrinker context).
1275 static unsigned long zswap_shrinker_scan(struct shrinker *shrinker,
1316 static unsigned long zswap_shrinker_count(struct shrinker *shrinker,
1327 * The shrinker resumes swap writeback, which will enter block
1372 static struct shrinker *zswap_alloc_shrinker(void)
1374 struct shrinker *shrinker;
1376 shrinker =
1378 if (!shrinker)
1381 shrinker->scan_objects = zswap_shrinker_scan;
1382 shrinker->count_objects = zswap_shrinker_count;
1383 shrinker->batch = 0;
1384 shrinker->seeks = DEFAULT_SEEKS;
1385 return shrinker;