mirror_zfs/module/splat
Chunwei Chen 545e9ac00a Add ddi_time_after and friends
When comparing times gotten from ddi_get_lbolt, we have to take account of
wrap around of jiffies. Therefore, we cannot use 't1 < t2'. Instead we should
use 't1 - t2 < 0'.

This patch add ddi_time_after and friends to address this issue. They have
strict type restriction, clock_t for vanilla and int64_t for 64 version, to
prevent type conversion from screwing things.

Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #335
2014-04-14 09:32:01 -07:00
..
Makefile.in Add script for builtin module building. 2012-07-26 15:13:09 -07:00
splat-atomic.c Linux 3.10 compat: add missing include of linux/slab.h 2013-07-08 15:21: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 Add module versioning 2013-12-06 11:03:43 -08:00
splat-generic.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-internal.h Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-kmem.c splat kmem:slab_reclaim: Test cleanup 2014-04-08 12:44:41 -07:00
splat-kobj.c Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-linux.c Refresh links to web site 2013-03-04 19:09:34 -08: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 Add ddi_time_after and friends 2014-04-14 09:32:01 -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