summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorGrigoriy Orlov <gluk@cvs.openbsd.org>2001-04-15 23:46:30 +0000
committerGrigoriy Orlov <gluk@cvs.openbsd.org>2001-04-15 23:46:30 +0000
commit8a1460d1bbefded143a3197d62b0a666e5695840 (patch)
treec57e0f729d7419bf6df87092cee37794d96fe911 /sys
parent35ad971a0289e643af0c50ee1dc34914f9c7f2bd (diff)
Avoid panic on unmounting read-only fs, which previously use softupdates.
This problem occur only on kernels without soft-updates support. art@ ok.
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 3ffd6abf98e..cbeee670a6c 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_vfsops.c,v 1.38 2001/04/13 02:39:05 gluk Exp $ */
+/* $OpenBSD: ffs_vfsops.c,v 1.39 2001/04/15 23:46:29 gluk Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */
/*
@@ -829,7 +829,7 @@ ffs_unmount(mp, mntflags, p)
ump = VFSTOUFS(mp);
fs = ump->um_fs;
- if (fs->fs_flags & FS_DOSOFTDEP)
+ if (mp->mnt_flag & MNT_SOFTDEP)
error = softdep_flushfiles(mp, flags, p);
else
error = ffs_flushfiles(mp, flags, p);