]> git.proxmox.com Git - mirror_spl.git/commit
Cleanup vn_rename() and vn_remove()
authorRichard Yao <ryao@gentoo.org>
Sun, 29 Jun 2014 05:00:02 +0000 (01:00 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 13 Aug 2014 23:25:44 +0000 (16:25 -0700)
commitec18fe3ce8f27cfd86743f091d2d57e78dd8a5af
tree1f2714802668da9a29a795e094a6f23c7ec5c6f9
parent2fc44f66ec9b83069593d87cf311069458c0d5ae
Cleanup vn_rename() and vn_remove()

zfsonlinux/spl#bcb15891ab394e11615eee08bba1fd85ac32e158 implemented
Linux 3.6+ support by adding duplicate vn_rename and vn_remove
functions. The new ones were cleaner, but the duplicate functions made
the codebase less maintainable. This adds some compatibility shims that
allow us to retire the older vn_rename and vn_remove in favor of the new
ones on old kernels. The result is a net 143 line reduction in lines of
code and a cleaner codebase.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #370
config/spl-build.m4
include/linux/file_compat.h
include/sys/vnode.h
module/spl/spl-generic.c
module/spl/spl-vnode.c