1dnl # SPDX-License-Identifier: CDDL-1.0 2dnl # 3dnl # 6.19 API change. inode->i_state no longer accessible directly; helper 4dnl # functions exist. 5dnl # 6AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_STATE_READ_ONCE], [ 7 ZFS_LINUX_TEST_SRC([inode_state_read_once], [ 8 #include <linux/fs.h> 9 ], [ 10 struct inode i = {}; 11 inode_state_read_once(&i); 12 ],[]) 13]) 14 15AC_DEFUN([ZFS_AC_KERNEL_INODE_STATE_READ_ONCE], [ 16 AC_MSG_CHECKING([whether inode_state_read_once() exists]) 17 ZFS_LINUX_TEST_RESULT([inode_state_read_once], [ 18 AC_MSG_RESULT(yes) 19 AC_DEFINE(HAVE_INODE_STATE_READ_ONCE, 1, 20 [inode_state_read_once() exists]) 21 ],[ 22 AC_MSG_RESULT(no) 23 ]) 24]) 25