mirror_zfs/include/spl/sys
Brian Behlendorf 6413c95fbd
Linux 4.18 compat: inode timespec -> timespec64
Commit torvalds/linux@95582b0 changes the inode i_atime, i_mtime,
and i_ctime members form timespec's to timespec64's to make them
2038 safe.  As part of this change the current_time() function was
also updated to return the timespec64 type.

Resolve this issue by introducing a new inode_timespec_t type which
is defined to match the timespec type used by the inode.  It should
be used when working with inode timestamps to ensure matching types.

The timestruc_t type under Illumos was used in a similar fashion but
was specified to always be a timespec_t.  Rather than incorrectly
define this type all timespec_t types have been replaced by the new
inode_timespec_t type.

Finally, the kernel and user space 'sys/time.h' headers were aligned
with each other.  They define as appropriate for the context several
constants as macros and include static inline implementation of
gethrestime(), gethrestime_sec(), and gethrtime().

Reviewed-by: Chunwei Chen <tuxoko@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7643
2018-06-19 21:51:18 -07:00
..
acl.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
atomic.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
byteorder.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
callb.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
callo.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
cmn_err.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
condvar.h Linux 4.18 compat: inode timespec -> timespec64 2018-06-19 21:51:18 -07:00
console.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
cred.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
ctype.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
debug.h Update build system and packaging 2018-05-29 16:00:33 -07:00
disp.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
dkio.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
dkioc_free_util.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
errno.h Update build system and packaging 2018-05-29 16:00:33 -07:00
fcntl.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
file.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
inttypes.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
isa_defs.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
kmem_cache.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
kmem.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
kobj.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
kstat.h Add pool state /proc entry, "SUSPENDED" pools 2018-06-06 09:33:54 -07:00
list.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
Makefile.am Update build system and packaging 2018-05-29 16:00:33 -07:00
mode.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
mutex.h Update build system and packaging 2018-05-29 16:00:33 -07:00
param.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
proc.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
processor.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
random.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
rwlock.h Update build system and packaging 2018-05-29 16:00:33 -07:00
shrinker.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
sid.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
signal.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
stat.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
strings.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
sunddi.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
sysmacros.h Update build system and packaging 2018-05-29 16:00:33 -07:00
systeminfo.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
taskq.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
thread.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
time.h Linux 4.18 compat: inode timespec -> timespec64 2018-06-19 21:51:18 -07:00
timer.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
tsd.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
types32.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
types.h Linux 4.18 compat: inode timespec -> timespec64 2018-06-19 21:51:18 -07:00
uio.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
user.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
vfs.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
vmem.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
vmsystm.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
vnode.h Linux 4.18 compat: inode timespec -> timespec64 2018-06-19 21:51:18 -07:00
wait.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
zmod.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
zone.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00