Files
mirror_zfs/module/os/linux/zfs
chrisrd 2a149775b4 zfs_prune: reset sc.nr_to_scan
sc.nr_to_scan is an input to super_cache_clean (via
shrinker->scan_objects), used to set the number of objects to scan
in the various caches. However super_cache_scan also modifies
sc.nr_to_scan, so when used in a loop we need to reset
sc.nr_to_scan back to our desired nr_to_scan for the next
iteration.

Issue discovered and solution suggested by
Tenzin Lhakhang @tlhakhan.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chris Dunlop <chris@onthe.net.au>
Issue #12433
Closes #12908
2022-01-04 17:07:33 -08:00
..
2021-03-19 21:00:59 -07:00
2019-09-12 13:33:44 -07:00
2019-09-12 13:33:44 -07:00
2021-09-14 10:17:54 -06:00
2021-11-30 07:46:25 -07:00
2022-01-04 17:07:33 -08:00
2021-09-14 10:17:54 -06:00
2021-12-17 16:18:37 -08:00
2021-08-17 10:25:58 -07:00
2021-09-09 09:38:35 -07:00
2021-12-17 09:52:13 -08:00