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
dbe59dc029
commit
504ae196a9
@ -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