]> git.proxmox.com Git - mirror_spl.git/commit - config/spl-build.m4
Fix 2.6.35 shrinker callback API change
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 Oct 2010 21:16:43 +0000 (14:16 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 Oct 2010 21:51:26 +0000 (14:51 -0700)
commit23aa63cbf5e712493d9439f888e426f89bb97857
tree9a0a4c3a679c2f6fe1ae1696f32d78aedd7329ba
parenta68d91d770c0d4b8b72d9d07e65a79f3f99f03c6
Fix 2.6.35 shrinker callback API change

As of linux-2.6.35 the shrinker callback API now takes an additional
argument.  The shrinker struct is passed to the callback so that users
can embed the shrinker structure in private data and use container_of()
to access it.  This removes the need to always use global state for the
shrinker.

To handle this we add the SPL_AC_3ARGS_SHRINKER_CALLBACK autoconf
check to properly detect the API.  Then we simply setup a callback
function with the correct number of arguments.  For now we do not make
use of the new 3rd argument.
config/spl-build.m4
configure
module/spl/spl-kmem.c
spl_config.h.in