]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 6.7 compat: rework shrinker setup for heap allocations
authorRob Norris <robn@despairlabs.com>
Sat, 16 Dec 2023 13:36:21 +0000 (00:36 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 20 Dec 2023 19:47:55 +0000 (11:47 -0800)
commit957dc1037a87cf4e2748010b9469511b721f7067
tree6c971bc4fd6c00336cf680c7d4b592d365304269
parent1d324aceefff81ee605f8d0368e2b6a711b631cf
Linux 6.7 compat: rework shrinker setup for heap allocations

6.7 changes the shrinker API such that shrinkers must be allocated
dynamically by the kernel. To accomodate this, this commit reworks
spl_register_shrinker() to do something similar against earlier kernels.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://github.com/sponsors/robn
Closes #15681
config/kernel-shrink.m4
include/os/linux/spl/sys/shrinker.h
module/Kbuild.in
module/os/linux/spl/spl-shrinker.c [new file with mode: 0644]
module/os/linux/zfs/arc_os.c