mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
2fc44f66ec
commit
ec18fe3ce8
@@ -103,14 +103,6 @@
|
||||
#define CREATE_XATTR_DIR 0x04
|
||||
#define ATTR_NOACLCHECK 0x20
|
||||
|
||||
#ifdef HAVE_PATH_IN_NAMEIDATA
|
||||
# define nd_dentry path.dentry
|
||||
# define nd_mnt path.mnt
|
||||
#else
|
||||
# define nd_dentry dentry
|
||||
# define nd_mnt mnt
|
||||
#endif
|
||||
|
||||
typedef enum vtype {
|
||||
VNON = 0,
|
||||
VREG = 1,
|
||||
@@ -194,7 +186,6 @@ extern file_t *vn_getf(int fd);
|
||||
extern void vn_releasef(int fd);
|
||||
extern int vn_set_pwd(const char *filename);
|
||||
|
||||
int spl_vn_init_kallsyms_lookup(void);
|
||||
int spl_vn_init(void);
|
||||
void spl_vn_fini(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user