]> git.proxmox.com Git - mirror_zfs.git/blob - config/kernel-tmpfile.m4
Use boot_ncpus in place of max_ncpus in taskq_create
[mirror_zfs.git] / config / kernel-tmpfile.m4
1 dnl #
2 dnl # 3.11 API change
3 dnl # Add support for i_op->tmpfile
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_TMPFILE], [
6 ZFS_LINUX_TEST_SRC([inode_operations_tmpfile], [
7 #include <linux/fs.h>
8 int tmpfile(struct inode *inode, struct dentry *dentry,
9 umode_t mode) { return 0; }
10 static struct inode_operations
11 iops __attribute__ ((unused)) = {
12 .tmpfile = tmpfile,
13 };
14 ],[])
15 ])
16
17 AC_DEFUN([ZFS_AC_KERNEL_TMPFILE], [
18 AC_MSG_CHECKING([whether i_op->tmpfile() exists])
19 ZFS_LINUX_TEST_RESULT([inode_operations_tmpfile], [
20 AC_MSG_RESULT(yes)
21 AC_DEFINE(HAVE_TMPFILE, 1, [i_op->tmpfile() exists])
22 ],[
23 AC_MSG_RESULT(no)
24 ])
25 ])