Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jun 2021 20:47:27 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 5eacde3eb83d - main - ufs_rename(): softdep_prerename() does something only for SU+J
Message-ID:  <202106232047.15NKlRUH009819@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib:

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

commit 5eacde3eb83de6ef1e0b126c019c759bf411e36a
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-04-29 22:23:38 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-06-23 20:46:15 +0000

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106232047.15NKlRUH009819>