]>
Commit | Line | Data |
---|---|---|
8f195a90 YS |
1 | dnl # |
2 | dnl # 3.6 API change | |
3 | dnl # | |
4 | AC_DEFUN([ZFS_AC_KERNEL_LOOKUP_NAMEIDATA], [ | |
bd29109f | 5 | AC_MSG_CHECKING([whether iops->lookup() passes nameidata]) |
8f195a90 YS |
6 | ZFS_LINUX_TRY_COMPILE([ |
7 | #include <linux/fs.h> | |
c38367c7 RY |
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, | |
8f195a90 | 16 | }; |
c38367c7 | 17 | ],[ |
8f195a90 YS |
18 | ],[ |
19 | AC_MSG_RESULT(yes) | |
20 | AC_DEFINE(HAVE_LOOKUP_NAMEIDATA, 1, | |
bd29109f | 21 | [iops->lookup() passes nameidata]) |
8f195a90 YS |
22 | ],[ |
23 | AC_MSG_RESULT(no) | |
24 | ]) | |
25 | ]) |