mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
495bd532ab
The Linux shrinker has gone through three API changes since 2.6.22. Rather than force every caller to understand all three APIs this change consolidates the compatibility code in to the mm-compat.h header. The caller then can then use a single spl provided shrinker API which does the right thing for your kernel. SPL_SHRINKER_CALLBACK_PROTO(shrinker_callback, cb, nr_to_scan, gfp_mask); SPL_SHRINKER_DECLARE(shrinker_struct, shrinker_callback, seeks); spl_register_shrinker(&shrinker_struct); spl_unregister_shrinker(&&shrinker_struct); spl_exec_shrinker(&shrinker_struct, nr_to_scan, gfp_mask); |
||
---|---|---|
.. | ||
bitops_compat.h | ||
compiler_compat.h | ||
file_compat.h | ||
kallsyms_compat.h | ||
list_compat.h | ||
Makefile.in | ||
math64_compat.h | ||
mm_compat.h | ||
module_compat.h | ||
mutex_compat.h | ||
proc_compat.h | ||
rwsem_compat.h | ||
smp_compat.h | ||
sysctl_compat.h | ||
time_compat.h | ||
uaccess_compat.h | ||
workqueue_compat.h |