4 AC_DEFUN([ZFS_AC_KERNEL_LOOKUP_NAMEIDATA], [
5 AC_MSG_CHECKING([whether iops->lookup() takes struct nameidata])
6 ZFS_LINUX_TRY_COMPILE([
9 struct dentry *inode_lookup(struct inode *inode,
10 struct dentry *dentry, struct nameidata *nidata)
13 static const struct inode_operations iops
14 __attribute__ ((unused)) = {
15 .lookup = inode_lookup,
20 AC_DEFINE(HAVE_LOOKUP_NAMEIDATA, 1,
21 [iops->lookup() operation takes nameidata])