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
This commit is contained in:
Kirk McKusick 2020-04-09 23:51:18 +00:00
parent 9a79b99003
commit 621a274820
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359760

View File

@ -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;