]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-lookup-nameidata.m4
Linux 3.6 compat, iops->lookup()
[mirror_zfs.git] / config / kernel-lookup-nameidata.m4
CommitLineData
8f195a90
YS
1dnl #
2dnl # 3.6 API change
3dnl #
4AC_DEFUN([ZFS_AC_KERNEL_LOOKUP_NAMEIDATA], [
5 AC_MSG_CHECKING([whether iops->lookup() takes struct nameidata])
6 ZFS_LINUX_TRY_COMPILE([
7 #include <linux/fs.h>
8 ],[
9 struct dentry * (*inode_lookup) (struct inode *,struct dentry *,
10 struct nameidata *) = NULL;
11 struct inode_operations iops __attribute__ ((unused)) = {
12 .lookup = inode_lookup,
13 };
14 ],[
15 AC_MSG_RESULT(yes)
16 AC_DEFINE(HAVE_LOOKUP_NAMEIDATA, 1,
17 [iops->lookup() operation takes nameidata])
18 ],[
19 AC_MSG_RESULT(no)
20 ])
21])