git: 94069737c028 - stable/14 - ufs: Pass the new parent inode number to ufs_dirrewrite()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Aug 2025 00:28:31 UTC
The branch stable/14 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=94069737c0282ecd3a6d8ba3df12e919e8bef7a8
commit 94069737c0282ecd3a6d8ba3df12e919e8bef7a8
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-07-29 13:56:48 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-08-06 00:26:32 +0000
ufs: Pass the new parent inode number to ufs_dirrewrite()
(cherry picked from commit 2bc355c0182a889acc97a09e1272f7d7593949af)
---
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 6940510e315e..3621d072f608 100644
--- a/sys/ufs/ufs/ufs_vnops.c
+++ b/sys/ufs/ufs/ufs_vnops.c
@@ -1655,7 +1655,7 @@ relock:
}
error = ufs_dirrewrite(tdp, tip, fip->i_number,
IFTODT(fip->i_mode), (doingdirectory && newparent != 0) ?
- newparent != 0: doingdirectory);
+ newparent : doingdirectory);
if (error) {
if (doingdirectory) {
if (newparent == 0) {