aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-01-23 21:52:10 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-02-12 01:02:20 +0000
commit08c2dc2841214187a162d5e4475aa1b94d03fd77 (patch)
tree3d9e3d4b3991f70012dd7deefe641e27e9632edf /sys
parent1de1e2bfbf3c089418bbe67c096d60315c8ca5dd (diff)
downloadsrc-08c2dc2841214187a162d5e4475aa1b94d03fd77.tar.gz
src-08c2dc2841214187a162d5e4475aa1b94d03fd77.zip
ufs_direnter/SU: unconditionally UFS_UPDATE inode when extending directory
for all kinds of async/SU mount variants. Submitted by: mckusick Reviewed by: chs Tested by: pho MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ufs/ufs_lookup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/ufs/ufs/ufs_lookup.c b/sys/ufs/ufs/ufs_lookup.c
index 2f5fbf3d8001..e614f189a623 100644
--- a/sys/ufs/ufs/ufs_lookup.c
+++ b/sys/ufs/ufs/ufs_lookup.c
@@ -964,9 +964,7 @@ ufs_direnter(dvp, tvp, dirp, cnp, newdirbp, isrename)
if (newdirbp)
bdwrite(newdirbp);
bdwrite(bp);
- if ((dp->i_flag & IN_NEEDSYNC) == 0)
- return (UFS_UPDATE(dvp, 0));
- return (0);
+ return (UFS_UPDATE(dvp, 0));
}
if (DOINGASYNC(dvp)) {
bdwrite(bp);