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 09fb9ec520
commit fb0fc73e34

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) {