aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-10-10 04:18:49 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-10-10 04:18:49 +0000
commita4bcd20486f8c20cc875b39bc75aa0d5a047373f (patch)
treedebe6b26bc6db9585847a666728a4871dc0d9bbd /sys
parentdd28b379cb8d5b02442782a2586d729e3e197818 (diff)
downloadsrc-a4bcd20486f8c20cc875b39bc75aa0d5a047373f.tar.gz
src-a4bcd20486f8c20cc875b39bc75aa0d5a047373f.zip
zfs: use cache_rename
Notes
Notes: svn path=/head/; revision=366598
Diffstat (limited to 'sys')
-rw-r--r--sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops.c b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops.c
index 79202b60a6f0..e847410100fe 100644
--- a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops.c
+++ b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops.c
@@ -4165,10 +4165,7 @@ zfs_rename_(vnode_t *sdvp, vnode_t **svpp, struct componentname *scnp,
}
}
if (error == 0) {
- cache_purge(*svpp);
- if (*tvpp != NULL)
- cache_purge(*tvpp);
- cache_purge_negative(tdvp);
+ cache_rename(sdvp, *svpp, tdvp, *tvpp, scnp, tcnp);
}
}