Commit torvalds/linux@976516404 removed the current_kernel_time()
function (and several others). All callers are expected to use
current_kernel_time64(). Update the gethrestime_sec() wrapper
accordingly.
Backported to SPL from zfs:82c0a050f
Reviewed-by: Olaf Faaland <email address hidden>
Reviewed-by: Tony Hutter <email address hidden>
Signed-off-by: Brian Behlendorf <email address hidden>
Closes #8074
Lustre 2.8 (and possibly other versions) are still using timestruc_t,
which was removed in spl-0.7.10 in favor of inode_timespec_t. Add
in a backwards compatibility #define for timestruc_t so that Lustre
builds.
Reviewed by: Brian Behlendorf <email address hidden>
Reviewed-by: George Melikov <email address hidden>
Signed-off-by: Tony Hutter <email address hidden>
Closes #8014
The kernel's top level Kconfig was updated in 4.18 such that it
no longer matches the expected pattern preventing the spl source
from being inserted. Simplify the existing logic to always insert
the entry at the end of the file since an exact location is not
required, unlike in the Makefile.
Signed-off-by: Brian Behlendorf <email address hidden>
Issue #7890