diff options
author | iedowse <iedowse@FreeBSD.org> | 2002-08-05 17:59:20 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2002-08-05 17:59:20 +0000 |
commit | 504ae196a93f4a0c787e415600dffc3e6e1c8405 (patch) | |
tree | 652cc2d1ad2f94bdcb8dfc3d716469f1b1eb8c2a /sys/ufs | |
parent | dbe59dc02994a6f107374fe988a92b945d4fb566 (diff) | |
download | FreeBSD-src-504ae196a93f4a0c787e415600dffc3e6e1c8405.zip FreeBSD-src-504ae196a93f4a0c787e415600dffc3e6e1c8405.tar.gz |
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
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c index 83fa66e..61396a0 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) { |