Don't call softdep_slowdown() if soft updates are not active on the

filesystem. This causes a panic for kernels compiled without
softupdates.

Reported by:	luigi
This commit is contained in:
iedowse 2002-08-05 17:59:20 +00:00
parent dbe59dc029
commit 504ae196a9

View File

@ -173,7 +173,7 @@ ffs_truncate(vp, length, flags, cred, td)
* soft updates below.
*/
needextclean = 0;
softdepslowdown = softdep_slowdown(ovp);
softdepslowdown = DOINGSOFTDEP(ovp) && softdep_slowdown(ovp);
extblocks = 0;
datablocks = DIP(oip, i_blocks);
if (fs->fs_magic == FS_UFS2_MAGIC && oip->i_din2->di_extsize > 0) {