aboutsummaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2020-04-09 23:51:18 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2020-04-09 23:51:18 +0000
commit621a274820c8f986514a8e909a579d6f082edb38 (patch)
tree02cdae632043e461ae59e598a8e3128f2012ff04 /sys/ufs
parent9a79b9900346a405780f02f757396070de5e9a51 (diff)
downloadsrc-621a274820c8f986514a8e909a579d6f082edb38.tar.gz
src-621a274820c8f986514a8e909a579d6f082edb38.zip
Fixing the soft update macros in -r359612 triggered a previously
hidden bug in the file truncation code. Until that bug is tracked down and fixed, revert to the old behavior. Reported by: Peter Holm Reviewed by: kib, Chuck Silvers
Notes
Notes: svn path=/head/; revision=359760
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/ffs_inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c
index 237436fb167e..1783053173be 100644
--- a/sys/ufs/ffs/ffs_inode.c
+++ b/sys/ufs/ffs/ffs_inode.c
@@ -244,6 +244,7 @@ ffs_truncate(vp, length, flags, cred)
needextclean = 0;
softdeptrunc = 0;
journaltrunc = DOINGSUJ(vp);
+ journaltrunc = 0; /* XXX temp patch until bug found */
if (journaltrunc == 0 && DOINGSOFTDEP(vp) && length == 0)
softdeptrunc = !softdep_slowdown(vp);
extblocks = 0;