mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-31 04:14:21 +03:00
config: remove HAVE_CURRENT_TIME
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:
parent
7bdea98d4f
commit
5d537c7660
@ -1,26 +0,0 @@
|
|||||||
dnl #
|
|
||||||
dnl # 4.9, current_time() added
|
|
||||||
dnl # 4.18, return type changed from timespec to timespec64
|
|
||||||
dnl #
|
|
||||||
dnl # Note that we don't care about the return type in this check. If we have
|
|
||||||
dnl # to implement a fallback, we'll know we're <4.9, which was timespec.
|
|
||||||
dnl #
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_SRC_CURRENT_TIME], [
|
|
||||||
ZFS_LINUX_TEST_SRC([current_time], [
|
|
||||||
#include <linux/fs.h>
|
|
||||||
], [
|
|
||||||
struct inode ip __attribute__ ((unused));
|
|
||||||
(void) current_time(&ip);
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_CURRENT_TIME], [
|
|
||||||
AC_MSG_CHECKING([whether current_time() exists])
|
|
||||||
ZFS_LINUX_TEST_RESULT_SYMBOL([current_time],
|
|
||||||
[current_time], [fs/inode.c], [
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
AC_DEFINE(HAVE_CURRENT_TIME, 1, [current_time() exists])
|
|
||||||
], [
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
])
|
|
||||||
])
|
|
@ -117,7 +117,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_SRC], [
|
|||||||
ZFS_AC_KERNEL_SRC_KUIDGID_T
|
ZFS_AC_KERNEL_SRC_KUIDGID_T
|
||||||
ZFS_AC_KERNEL_SRC_KUID_HELPERS
|
ZFS_AC_KERNEL_SRC_KUID_HELPERS
|
||||||
ZFS_AC_KERNEL_SRC_RENAME
|
ZFS_AC_KERNEL_SRC_RENAME
|
||||||
ZFS_AC_KERNEL_SRC_CURRENT_TIME
|
|
||||||
ZFS_AC_KERNEL_SRC_USERNS_CAPABILITIES
|
ZFS_AC_KERNEL_SRC_USERNS_CAPABILITIES
|
||||||
ZFS_AC_KERNEL_SRC_IN_COMPAT_SYSCALL
|
ZFS_AC_KERNEL_SRC_IN_COMPAT_SYSCALL
|
||||||
ZFS_AC_KERNEL_SRC_KTIME
|
ZFS_AC_KERNEL_SRC_KTIME
|
||||||
@ -251,7 +250,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_RESULT], [
|
|||||||
ZFS_AC_KERNEL_KUIDGID_T
|
ZFS_AC_KERNEL_KUIDGID_T
|
||||||
ZFS_AC_KERNEL_KUID_HELPERS
|
ZFS_AC_KERNEL_KUID_HELPERS
|
||||||
ZFS_AC_KERNEL_RENAME
|
ZFS_AC_KERNEL_RENAME
|
||||||
ZFS_AC_KERNEL_CURRENT_TIME
|
|
||||||
ZFS_AC_KERNEL_USERNS_CAPABILITIES
|
ZFS_AC_KERNEL_USERNS_CAPABILITIES
|
||||||
ZFS_AC_KERNEL_IN_COMPAT_SYSCALL
|
ZFS_AC_KERNEL_IN_COMPAT_SYSCALL
|
||||||
ZFS_AC_KERNEL_KTIME
|
ZFS_AC_KERNEL_KTIME
|
||||||
|
@ -291,18 +291,6 @@ func(struct mnt_idmap *user_ns, const struct path *path, \
|
|||||||
#error
|
#error
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* 4.9 API change
|
|
||||||
* Preferred interface to get the current FS time.
|
|
||||||
*/
|
|
||||||
#if !defined(HAVE_CURRENT_TIME)
|
|
||||||
static inline struct timespec
|
|
||||||
current_time(struct inode *ip)
|
|
||||||
{
|
|
||||||
return (timespec_trunc(current_kernel_time(), ip->i_sb->s_time_gran));
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 4.16 API change
|
* 4.16 API change
|
||||||
* Added iversion interface for managing inode version field.
|
* Added iversion interface for managing inode version field.
|
||||||
|
Loading…
Reference in New Issue
Block a user