]> git.proxmox.com Git - mirror_zfs.git/commitdiff
freebsd: remove no-op vn_renamepath()
authorBrooks Davis <brooks@one-eyed-alien.net>
Thu, 27 Oct 2022 21:28:55 +0000 (22:28 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 7 Nov 2022 23:55:20 +0000 (15:55 -0800)
vn_renamepath() is a Solaris-ism that was defined away in the FreeBSD
port.  Now that the only use is in the FreeBSD zfs_vnops_os.c, drop it
entierly.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Brooks Davis <brooks.davis@sri.com>
Closes #14127

include/os/freebsd/spl/sys/vnode.h
module/os/freebsd/zfs/zfs_vnops_os.c

index 084289b6bfcd62b3fcd9c8a68b7943c59189796e..483d12ae59a2cf330f4ae4b5d4efe2352e645102 100644 (file)
@@ -107,7 +107,6 @@ vn_flush_cached_data(vnode_t *vp, boolean_t sync)
 
 #define        vn_exists(vp)           do { } while (0)
 #define        vn_invalid(vp)          do { } while (0)
-#define        vn_renamepath(tdvp, svp, tnm, lentnm)   do { } while (0)
 #define        vn_free(vp)             do { } while (0)
 #define        vn_matchops(vp, vops)   ((vp)->v_op == &(vops))
 
index bcf4e2f18d83d15508ca37f9c3c86f55196dd8d8..8a350ab4985c61ffd70207345e10f2809dcca726 100644 (file)
@@ -3373,11 +3373,6 @@ zfs_do_rename_impl(vnode_t *sdvp, vnode_t **svpp, struct componentname *scnp,
                        if (error == 0) {
                                zfs_log_rename(zilog, tx, TX_RENAME, sdzp,
                                    snm, tdzp, tnm, szp);
-
-                               /*
-                                * Update path information for the target vnode
-                                */
-                               vn_renamepath(tdvp, *svpp, tnm, strlen(tnm));
                        } else {
                                /*
                                 * At this point, we have successfully created