Lines Matching refs:shrinker
114 struct shrinker shrinker; member
1716 static unsigned long dm_bufio_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) in dm_bufio_shrink_scan()
1727 c = container_of(shrink, struct dm_bufio_client, shrinker); in dm_bufio_shrink_scan()
1734 static unsigned long dm_bufio_shrink_count(struct shrinker *shrink, struct shrink_control *sc) in dm_bufio_shrink_count()
1736 struct dm_bufio_client *c = container_of(shrink, struct dm_bufio_client, shrinker); in dm_bufio_shrink_count()
1846 c->shrinker.count_objects = dm_bufio_shrink_count; in dm_bufio_client_create()
1847 c->shrinker.scan_objects = dm_bufio_shrink_scan; in dm_bufio_client_create()
1848 c->shrinker.seeks = 1; in dm_bufio_client_create()
1849 c->shrinker.batch = 0; in dm_bufio_client_create()
1850 r = register_shrinker(&c->shrinker); in dm_bufio_client_create()
1890 unregister_shrinker(&c->shrinker); in dm_bufio_client_destroy()