aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/linux
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-08-24 20:41:49 +1000
committerBrian Behlendorf <[email protected]>2024-09-18 11:23:50 -0700
commit80d7f0f98e7b4281a02295ed0e3236e33c7995e1 (patch)
tree43085da142f2dec08df5aef7452c56c4ae539c45 /module/os/linux
parent06c34465b74651cfec77414e03663057e0f4f3a1 (diff)
config: remove HAVE_INODE_TIMESPEC64_TIMES
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Tino Reichardt <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16479
Diffstat (limited to 'module/os/linux')
-rw-r--r--module/os/linux/zfs/zfs_znode.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/module/os/linux/zfs/zfs_znode.c b/module/os/linux/zfs/zfs_znode.c
index 8b0011c37..4d18187b7 100644
--- a/module/os/linux/zfs/zfs_znode.c
+++ b/module/os/linux/zfs/zfs_znode.c
@@ -1363,12 +1363,6 @@ zfs_zinactive(znode_t *zp)
zfs_znode_hold_exit(zfsvfs, zh);
}
-#if defined(HAVE_INODE_TIMESPEC64_TIMES)
-#define zfs_compare_timespec timespec64_compare
-#else
-#define zfs_compare_timespec timespec_compare
-#endif
-
/*
* Determine whether the znode's atime must be updated. The logic mostly
* duplicates the Linux kernel's relatime_need_update() functionality.
@@ -1388,11 +1382,11 @@ zfs_relatime_need_update(const struct inode *ip)
* has passed since the last update of atime.
*/
tmp_ts = zpl_inode_get_mtime(ip);
- if (zfs_compare_timespec(&tmp_ts, &tmp_atime) >= 0)
+ if (timespec64_compare(&tmp_ts, &tmp_atime) >= 0)
return (B_TRUE);
tmp_ts = zpl_inode_get_ctime(ip);
- if (zfs_compare_timespec(&tmp_ts, &tmp_atime) >= 0)
+ if (timespec64_compare(&tmp_ts, &tmp_atime) >= 0)
return (B_TRUE);
if ((hrtime_t)now.tv_sec - (hrtime_t)tmp_atime.tv_sec >= 24*60*60)