mirror_zfs/include
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
..
fs Change spl-kmod-devel install path 2013-03-14 12:01:05 -07:00
linux Linux 3.12 compat: New shrinker API 2013-11-06 13:23:40 -08:00
rpc Change spl-kmod-devel install path 2013-03-14 12:01:05 -07:00
sharefs Change spl-kmod-devel install path 2013-03-14 12:01:05 -07:00
sys Add ddi_time_after and friends 2014-04-14 09:32:01 -07:00
util Change spl-kmod-devel install path 2013-03-14 12:01:05 -07:00
vm Change spl-kmod-devel install path 2013-03-14 12:01:05 -07:00
Makefile.am Change spl-kmod-devel install path 2013-03-14 12:01:05 -07:00
spl-ctl.h Refresh links to web site 2013-03-04 19:09:34 -08:00
spl-debug.h Refresh links to web site 2013-03-04 19:09:34 -08:00
spl-device.h Refresh links to web site 2013-03-04 19:09:34 -08:00
spl-trace.h Refresh links to web site 2013-03-04 19:09:34 -08:00
splat-ctl.h Refresh links to web site 2013-03-04 19:09:34 -08:00
strings.h Refresh links to web site 2013-03-04 19:09:34 -08:00
unistd.h Refresh links to web site 2013-03-04 19:09:34 -08:00