mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
310e63dfd1
A new interface was added to manipulate the version field of an inode. Add a inode_set_iversion() wrapper for older kernels and use the new interface when available. The i_version field was dropped from the trace point due to the switch to an atomic64_t i_version type. Reviewed-by: Olaf Faaland <faaland1@llnl.gov> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Reviewed-by: Chunwei Chen <david.chen@nutanix.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #7148
20 lines
440 B
Plaintext
20 lines
440 B
Plaintext
dnl #
|
|
dnl # 4.16 API change
|
|
dnl # inode_set_iversion introduced to set i_version
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_KERNEL_INODE_SET_IVERSION], [
|
|
AC_MSG_CHECKING([whether inode_set_iversion() exists])
|
|
ZFS_LINUX_TRY_COMPILE([
|
|
#include <linux/iversion.h>
|
|
],[
|
|
struct inode inode;
|
|
inode_set_iversion(&inode, 1);
|
|
],[
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_INODE_SET_IVERSION, 1,
|
|
[inode_set_iversion() exists])
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
])
|
|
])
|