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:
parent
09fb9ec520
commit
fb0fc73e34
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user