mirror_zfs/module/splat
Tim Chase 802a4a2ad5 Linux 3.12 compat: shrinker semantics
The new shrinker API as of Linux 3.12 modifies "struct shrinker" by
replacing the @shrink callback with the pair of @count_objects and
@scan_objects.  It also requires the return value of @count_objects to
return the number of objects actually freed whereas the previous @shrink
callback returned the number of remaining freeable objects.

This patch adds support for the new @scan_objects return value semantics
and updates the splat shrinker test case appropriately.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Closes #403
2014-10-28 09:20:13 -07:00
..
Makefile.in Add script for builtin module building. 2012-07-26 15:13:09 -07:00
splat-atomic.c Update SPLAT to use kmutex_t for portability 2014-10-17 15:07:28 -07:00
splat-condvar.c Support post-3.13 kthread_create() semantics. 2014-04-08 12:44:42 -07:00
splat-cred.c splat cred:groupmember: Fix false positives 2014-04-08 12:44:41 -07:00
splat-ctl.c Update code to use misc_register()/misc_deregister() 2014-10-17 15:07:28 -07:00
splat-generic.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-internal.h Update code to use misc_register()/misc_deregister() 2014-10-17 15:07:28 -07:00
splat-kmem.c Remove global memory variables 2014-10-17 15:11:51 -07:00
splat-kobj.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-linux.c Linux 3.12 compat: shrinker semantics 2014-10-28 09:20:13 -07:00
splat-list.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-mutex.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-random.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-rwlock.c Support post-3.13 kthread_create() semantics. 2014-04-08 12:44:42 -07:00
splat-taskq.c Fix bug in SPLAT taskq:front 2014-10-03 10:42:20 -07:00
splat-thread.c Linux 3.10 compat: add missing include of linux/slab.h 2013-07-08 15:21:28 -07:00
splat-time.c Linux 3.10 compat: add missing include of linux/slab.h 2013-07-08 15:21:28 -07:00
splat-vnode.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-zlib.c Refresh links to web site 2013-03-04 19:09:34 -08:00