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
(cherry picked from commit 03b84099d9c4d3f1b4d1b123abc967e81f6d15db)

Details

Provenance
rob.norris_klarasystems.comAuthored on Dec 16 2023, 1:36 PM
Tony Hutter <hutter2@llnl.gov>Committed on Feb 8 2024, 9:29 PM
Parents
rG72bf91dfdb83: linux 6.7 compat: handle superblock shrinker member change
Branches
Unknown
Tags
Unknown