aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zdb/zdb.c
diff options
context:
space:
mode:
authorchrisrd <[email protected]>2022-01-05 12:07:33 +1100
committerGitHub <[email protected]>2022-01-04 17:07:33 -0800
commit2a149775b4c39c13efe047fe5b3a2e3752d8fed1 (patch)
tree2904df20580cc44161615d8e336e1d6045307ded /cmd/zdb/zdb.c
parent3c80e0742a8fa012d5f2048e362a6235f8ec2304 (diff)
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 <[email protected]> Signed-off-by: Chris Dunlop <[email protected]> Issue #12433 Closes #12908
Diffstat (limited to 'cmd/zdb/zdb.c')
0 files changed, 0 insertions, 0 deletions