]> git.proxmox.com Git - mirror_spl.git/commit - config/spl-build.m4
Linux 3.12 compat: New shrinker API
authorRichard Yao <ryao@gentoo.org>
Tue, 5 Nov 2013 16:35:54 +0000 (11:35 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 6 Nov 2013 21:23:40 +0000 (13:23 -0800)
commitc3d9c0df3ee8d43db22815ebbfbe8b803fa46e46
treea5287be334d3eb702cfee2177791e69aa79a90fa
parent184c6873874c350bfb0b74f9e08ec8d89750d603
Linux 3.12 compat: New shrinker API

torvalds/linux@24f7c6 introduced a new shrinker API while
torvalds/linux@a0b021 dropped support for the old shrinker API.
This patch adds support for the new shrinker API by wrapping
the old one with the new one.

This change also reorganizes the autotools checks on the shrinker
API such that the configure script will fail early if an unknown
API is encountered in the future.

Support for the set_shrinker() API which was used by Linux 2.6.22
and older has been dropped.  As a general rule compatibility is
only maintained back to Linux 2.6.26.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes zfsonlinux/zfs#1732
Closes zfsonlinux/zfs#1822
Closes #293
Closes #307
config/spl-build.m4
include/linux/mm_compat.h