mirror_zfs/module
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
..
avl module: avl: fix unused, remove argsused 2021-12-23 09:42:47 -08:00
icp module: icp: fix unused, remove argsused 2021-12-23 09:42:47 -08:00
lua Use fallthrough macro 2021-09-14 10:17:54 -06:00
nvpair libnvpair: fix unused, remove argsused 2021-12-23 09:42:47 -08:00
os zfs_prune: reset sc.nr_to_scan 2022-01-04 17:07:33 -08:00
spl Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
unicode Update checkstyle workflow env to ubuntu-20.04 2021-11-02 14:02:57 -06:00
zcommon module: zcommon: zprop: fix unused, remove argsused 2021-12-23 09:42:47 -08:00
zfs Verify dRAID empty sectors 2022-01-04 16:46:32 -08:00
zstd Linux 5.16: Resolve ZSTD_isError symbol collision in Linux kernel 2021-12-07 12:28:22 -08:00
.gitignore Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
Kbuild.in Add zstd support to zfs 2020-08-20 10:30:06 -07:00
Makefile.bsd Code cleanups 2021-11-30 10:32:38 -08:00
Makefile.in Workaround Debian's fake System.map behavior 2021-12-17 12:43:13 -08:00