]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - zfs/config/kernel-lookup-nameidata.m4
arm64: topology: Avoid checking numa mask for scheduler MC selection
[mirror_ubuntu-bionic-kernel.git] / zfs / config / kernel-lookup-nameidata.m4
CommitLineData
70e083d2
TG
1dnl #
2dnl # 3.6 API change
3dnl #
4AC_DEFUN([ZFS_AC_KERNEL_LOOKUP_NAMEIDATA], [
5 AC_MSG_CHECKING([whether iops->lookup() passes nameidata])
6 ZFS_LINUX_TRY_COMPILE([
7 #include <linux/fs.h>
8
9 struct dentry *inode_lookup(struct inode *inode,
10 struct dentry *dentry, struct nameidata *nidata)
11 { return NULL; }
12
13 static const struct inode_operations iops
14 __attribute__ ((unused)) = {
15 .lookup = inode_lookup,
16 };
17 ],[
18 ],[
19 AC_MSG_RESULT(yes)
20 AC_DEFINE(HAVE_LOOKUP_NAMEIDATA, 1,
21 [iops->lookup() passes nameidata])
22 ],[
23 AC_MSG_RESULT(no)
24 ])
25])