]>
Commit | Line | Data |
---|---|---|
e10b0808 AX |
1 | dnl # |
2 | dnl # 4.2 API change | |
3 | dnl # This kernel retired the nameidata structure which forced the | |
4 | dnl # restructuring of the put_link() prototype and how it is called. | |
5 | dnl # We check for the new interface rather than detecting the old one. | |
6 | dnl # | |
7 | AC_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 | ]) |