HomeFreeBSD

Linux 5.6 compat: time_t

Description

Linux 5.6 compat: time_t

As part of the Linux kernel's y2038 changes the time_t type has been
fully retired. Callers are now required to use the time64_t type.

Rather than move to the new type, I've removed the few remaining
places where a time_t is used in the kernel code. They've been
replaced with a uint64_t which is already how ZFS internally
handled these values.

Going forward we should work towards updating the remaining user
space time_t consumers to the 64-bit interfaces.

Reviewed-by: Matthew Macy <mmacy@freebsd.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #10052
Closes #10064

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Feb 26 2020, 9:18 PM
Parents
rGff5587d65137: Linux 5.6 compat: ktime_get_raw_ts64()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG2c3a83701dd1: Linux 5.6 compat: time_t (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Feb 27 2020, 5:31 PM