git: ac6447c08aec - stable/13 - ufs_rename(): softdep_prerename() does something only for SU+J

Konstantin Belousov kib at FreeBSD.org
Wed Jul 7 11:11:01 UTC 2021


The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=ac6447c08aec6e389ae87369af221dfe2ecd2f16

commit ac6447c08aec6e389ae87369af221dfe2ecd2f16
Author:     Konstantin Belousov <kib at FreeBSD.org>
AuthorDate: 2021-04-29 22:23:38 +0000
Commit:     Konstantin Belousov <kib at FreeBSD.org>
CommitDate: 2021-07-07 10:23:45 +0000

    ufs_rename(): softdep_prerename() does something only for SU+J
    
    (cherry picked from commit 5eacde3eb83de6ef1e0b126c019c759bf411e36a)
---
 sys/ufs/ufs/ufs_vnops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {


More information about the dev-commits-src-all mailing list