3 dnl # Add support for i_op->tmpfile
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_TMPFILE], [
8 dnl # add support for userns parameter to tmpfile
10 ZFS_LINUX_TEST_SRC([inode_operations_tmpfile_userns], [
12 int tmpfile(struct user_namespace *userns,
13 struct inode *inode, struct dentry *dentry,
14 umode_t mode) { return 0; }
15 static struct inode_operations
16 iops __attribute__ ((unused)) = {
20 ZFS_LINUX_TEST_SRC([inode_operations_tmpfile], [
22 int tmpfile(struct inode *inode, struct dentry *dentry,
23 umode_t mode) { return 0; }
24 static struct inode_operations
25 iops __attribute__ ((unused)) = {
31 AC_DEFUN([ZFS_AC_KERNEL_TMPFILE], [
32 AC_MSG_CHECKING([whether i_op->tmpfile() exists])
33 ZFS_LINUX_TEST_RESULT([inode_operations_tmpfile_userns], [
35 AC_DEFINE(HAVE_TMPFILE, 1, [i_op->tmpfile() exists])
36 AC_DEFINE(HAVE_TMPFILE_USERNS, 1, [i_op->tmpfile() has userns])
38 ZFS_LINUX_TEST_RESULT([inode_operations_tmpfile], [
40 AC_DEFINE(HAVE_TMPFILE, 1, [i_op->tmpfile() exists])