]> granicus.if.org Git - zfs/commit
Linux 4.2 compat: follow_link() / put_link()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 15 Jul 2015 17:54:26 +0000 (10:54 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 17 Jul 2015 16:18:16 +0000 (09:18 -0700)
commitbd29109f1ac5be68f7f7c8bcb49e1b706fe899f0
tree6aa5f76ed5f9748ffbb8949b752826001c9fbb1e
parent7eb333fbdde32dbebdcc88c35610159e207237c9
Linux 4.2 compat: follow_link() / put_link()

As of Linux 4.2 the kernel has completely retired the nameidata
structure.  One of the few remaining consumers of this interface
were the follow_link() and put_link() callbacks.

This patch adds the required checks to configure to detect the
interface change and updates the functions accordingly.  Migrating
to the simple_follow_link() interface was considered but was decided
against ironically due to the increased complexity.

It also should be noted that the kernel follow_link() and put_link()
interfaces changes several times after 4.1 and but before 4.2.  This
means there is a narrow range of kernel commits which never appear
in an official tag of the Linux kernel which ZoL will not build.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Issue #3596
config/kernel-create-nameidata.m4
config/kernel-follow-link-nameidata.m4 [new file with mode: 0644]
config/kernel-lookup-nameidata.m4
config/kernel-put-link-nameidata.m4 [new file with mode: 0644]
config/kernel.m4
module/zfs/zpl_inode.c