]> granicus.if.org Git - zfs/commit
Linux 3.12 compat: split shrinker has s_shrink
authorTim Chase <tim@chase2k.com>
Thu, 18 Dec 2014 16:08:47 +0000 (10:08 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 16 Mar 2015 17:38:47 +0000 (10:38 -0700)
commit1817cb6dc6f7226757d19ef6ec9108e8c8b0808f
tree1d5e0a9009a4aca34e3fc6db6abc993e6a9d1375
parent7b13354d55a70bec0b6431d78a094d1a6a766418
Linux 3.12 compat: split shrinker has s_shrink

The split count/scan shrinker callbacks introduced in 3.12 broke the
test for HAVE_SHRINK, effectively disabling the per-superblock shrinkers.

This patch re-enables the per-superblock shrinkers when the split shrinker
callbacks have been detected.

Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2975
module/zfs/zfs_vfsops.c
module/zfs/zpl_super.c