mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
config: remove HAVE_INODE_TIMESPEC64_TIMES
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
@@ -141,27 +141,14 @@ do { \
|
||||
(stmp)[1] = (uint64_t)(tp)->tv_nsec; \
|
||||
} while (0)
|
||||
|
||||
#if defined(HAVE_INODE_TIMESPEC64_TIMES)
|
||||
/*
|
||||
* Decode ZFS stored time values to a struct timespec64
|
||||
* 4.18 and newer kernels.
|
||||
*/
|
||||
#define ZFS_TIME_DECODE(tp, stmp) \
|
||||
do { \
|
||||
(tp)->tv_sec = (time64_t)(stmp)[0]; \
|
||||
(tp)->tv_nsec = (long)(stmp)[1]; \
|
||||
} while (0)
|
||||
#else
|
||||
/*
|
||||
* Decode ZFS stored time values to a struct timespec
|
||||
* 4.17 and older kernels.
|
||||
*/
|
||||
#define ZFS_TIME_DECODE(tp, stmp) \
|
||||
do { \
|
||||
(tp)->tv_sec = (time_t)(stmp)[0]; \
|
||||
(tp)->tv_nsec = (long)(stmp)[1]; \
|
||||
} while (0)
|
||||
#endif /* HAVE_INODE_TIMESPEC64_TIMES */
|
||||
|
||||
#define ZFS_ACCESSTIME_STAMP(zfsvfs, zp)
|
||||
|
||||
|
||||
@@ -161,12 +161,9 @@ extern long zpl_ioctl_fideduperange(struct file *filp, void *arg);
|
||||
|
||||
#if defined(HAVE_INODE_TIMESTAMP_TRUNCATE)
|
||||
#define zpl_inode_timestamp_truncate(ts, ip) timestamp_truncate(ts, ip)
|
||||
#elif defined(HAVE_INODE_TIMESPEC64_TIMES)
|
||||
#define zpl_inode_timestamp_truncate(ts, ip) \
|
||||
timespec64_trunc(ts, (ip)->i_sb->s_time_gran)
|
||||
#else
|
||||
#define zpl_inode_timestamp_truncate(ts, ip) \
|
||||
timespec_trunc(ts, (ip)->i_sb->s_time_gran)
|
||||
timespec64_trunc(ts, (ip)->i_sb->s_time_gran)
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_INODE_OWNER_OR_CAPABLE)
|
||||
|
||||
Reference in New Issue
Block a user