aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-04-29 22:23:38 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-06-23 20:46:15 +0000
commit5eacde3eb83de6ef1e0b126c019c759bf411e36a (patch)
treeffa9e86954727c0ea69cecea3d300b4ad821d3f0
parentd0929a990c80b78bc84326234cf54cd4382d42fd (diff)
downloadsrc-5eacde3eb83de6ef1e0b126c019c759bf411e36a.tar.gz
src-5eacde3eb83de6ef1e0b126c019c759bf411e36a.zip
ufs_rename(): softdep_prerename() does something only for SU+J
so call it only in SU+J case Reviewed by: mckusick Discussed with: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D30041
-rw-r--r--sys/ufs/ufs/ufs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c
index 00249e3902c8..2154f7aa7f95 100644
--- a/sys/ufs/ufs/ufs_vnops.c
+++ b/sys/ufs/ufs/ufs_vnops.c
@@ -1364,7 +1364,7 @@ relock:
}
}
- if (DOINGSOFTDEP(fdvp)) {
+ if (DOINGSUJ(fdvp)) {
error = softdep_prerename(fdvp, fvp, tdvp, tvp);
if (error != 0) {
if (error == ERELOOKUP) {