HomeFreeBSD

linux 6.7 compat: rework shrinker setup for heap allocations

Description

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.

Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://github.com/sponsors/robn

Details

Provenance
rob.norris_klarasystems.comAuthored on Dec 16 2023, 1:36 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Dec 21 2023, 7:03 PM
Parents
rG18a9185165e2: linux 6.7 compat: handle superblock shrinker member change
Branches
Unknown
Tags
Unknown