]> git.proxmox.com Git - mirror_zfs-debian.git/blame - config/kernel-put-link-nameidata.m4
Imported Upstream version 0.6.5.4
[mirror_zfs-debian.git] / config / kernel-put-link-nameidata.m4
CommitLineData
e10b0808
AX
1dnl #
2dnl # 4.2 API change
3dnl # This kernel retired the nameidata structure which forced the
4dnl # restructuring of the put_link() prototype and how it is called.
5dnl # We check for the new interface rather than detecting the old one.
6dnl #
7AC_DEFUN([ZFS_AC_KERNEL_PUT_LINK], [
8 AC_MSG_CHECKING([whether iops->put_link() passes nameidata])
9 ZFS_LINUX_TRY_COMPILE([
10 #include <linux/fs.h>
11 void put_link(struct inode *ip, void *cookie) { return; }
12 static struct inode_operations iops __attribute__ ((unused)) = {
13 .put_link = put_link,
14 };
15 ],[
16 ],[
17 AC_MSG_RESULT(no)
18 ],[
19 AC_MSG_RESULT(yes)
20 AC_DEFINE(HAVE_PUT_LINK_NAMEIDATA, 1,
21 [iops->put_link() nameidata])
22 ])
23])