aboutsummaryrefslogtreecommitdiff
path: root/sys/ufs/ffs/ffs_inode.c
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2002-08-05 17:59:20 +0000
committerIan Dowse <iedowse@FreeBSD.org>2002-08-05 17:59:20 +0000
commit98caa2e4e9179a9d1b5b8e1b47ec6ac8038269ea (patch)
tree652cc2d1ad2f94bdcb8dfc3d716469f1b1eb8c2a /sys/ufs/ffs/ffs_inode.c
parent1b9f1a4bd2ba4aabeece7c0e9dd4b4f75261fc1c (diff)
downloadsrc-98caa2e4e9179a9d1b5b8e1b47ec6ac8038269ea.tar.gz
src-98caa2e4e9179a9d1b5b8e1b47ec6ac8038269ea.zip
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
Notes
Notes: svn path=/head/; revision=101398
Diffstat (limited to 'sys/ufs/ffs/ffs_inode.c')
-rw-r--r--sys/ufs/ffs/ffs_inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c
index 83fa66ef22fd..61396a0da455 100644
--- a/sys/ufs/ffs/ffs_inode.c
+++ b/sys/ufs/ffs/ffs_inode.c
@@ -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) {