1*eda14cbcSMatt Macydnl # 2*eda14cbcSMatt Macydnl # 3.11 API change 3*eda14cbcSMatt Macydnl # Add support for i_op->tmpfile 4*eda14cbcSMatt Macydnl # 5*eda14cbcSMatt MacyAC_DEFUN([ZFS_AC_KERNEL_SRC_TMPFILE], [ 6*eda14cbcSMatt Macy ZFS_LINUX_TEST_SRC([inode_operations_tmpfile], [ 7*eda14cbcSMatt Macy #include <linux/fs.h> 8*eda14cbcSMatt Macy int tmpfile(struct inode *inode, struct dentry *dentry, 9*eda14cbcSMatt Macy umode_t mode) { return 0; } 10*eda14cbcSMatt Macy static struct inode_operations 11*eda14cbcSMatt Macy iops __attribute__ ((unused)) = { 12*eda14cbcSMatt Macy .tmpfile = tmpfile, 13*eda14cbcSMatt Macy }; 14*eda14cbcSMatt Macy ],[]) 15*eda14cbcSMatt Macy]) 16*eda14cbcSMatt Macy 17*eda14cbcSMatt MacyAC_DEFUN([ZFS_AC_KERNEL_TMPFILE], [ 18*eda14cbcSMatt Macy AC_MSG_CHECKING([whether i_op->tmpfile() exists]) 19*eda14cbcSMatt Macy ZFS_LINUX_TEST_RESULT([inode_operations_tmpfile], [ 20*eda14cbcSMatt Macy AC_MSG_RESULT(yes) 21*eda14cbcSMatt Macy AC_DEFINE(HAVE_TMPFILE, 1, [i_op->tmpfile() exists]) 22*eda14cbcSMatt Macy ],[ 23*eda14cbcSMatt Macy AC_MSG_RESULT(no) 24*eda14cbcSMatt Macy ]) 25*eda14cbcSMatt Macy]) 26