]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-inode-getattr.m4
Use boot_ncpus in place of max_ncpus in taskq_create
[mirror_zfs.git] / config / kernel-inode-getattr.m4
CommitLineData
a3478c07
OF
1dnl #
2dnl # Linux 4.11 API
3dnl # See torvalds/linux@a528d35
4dnl #
608f8749
BB
5AC_DEFUN([ZFS_AC_KERNEL_SRC_INODE_GETATTR], [
6 ZFS_LINUX_TEST_SRC([inode_operations_getattr_path], [
a3478c07
OF
7 #include <linux/fs.h>
8
9 int test_getattr(
10 const struct path *p, struct kstat *k,
11 u32 request_mask, unsigned int query_flags)
12 { return 0; }
13
14 static const struct inode_operations
15 iops __attribute__ ((unused)) = {
16 .getattr = test_getattr,
17 };
608f8749 18 ],[])
a3478c07 19
608f8749 20 ZFS_LINUX_TEST_SRC([inode_operations_getattr_vfsmount], [
a3478c07
OF
21 #include <linux/fs.h>
22
23 int test_getattr(
24 struct vfsmount *mnt, struct dentry *d,
25 struct kstat *k)
26 { return 0; }
27
28 static const struct inode_operations
29 iops __attribute__ ((unused)) = {
30 .getattr = test_getattr,
31 };
608f8749
BB
32 ],[])
33])
34
35AC_DEFUN([ZFS_AC_KERNEL_INODE_GETATTR], [
36 AC_MSG_CHECKING([whether iops->getattr() takes a path])
37 ZFS_LINUX_TEST_RESULT([inode_operations_getattr_path], [
a3478c07 38 AC_MSG_RESULT(yes)
608f8749
BB
39 AC_DEFINE(HAVE_PATH_IOPS_GETATTR, 1,
40 [iops->getattr() takes a path])
a3478c07
OF
41 ],[
42 AC_MSG_RESULT(no)
a3478c07 43
608f8749
BB
44 AC_MSG_CHECKING([whether iops->getattr() takes a vfsmount])
45 ZFS_LINUX_TEST_RESULT([inode_operations_getattr_vfsmount], [
46 AC_MSG_RESULT(yes)
47 AC_DEFINE(HAVE_VFSMOUNT_IOPS_GETATTR, 1,
48 [iops->getattr() takes a vfsmount])
49 ],[
50 AC_MSG_RESULT(no)
51 ])
52 ])
a3478c07 53])