summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-09-12 15:30:33 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-09-12 15:30:33 +0000
commit15f4929fbfa45a940054701f31f076a1ea017e6e (patch)
tree5c511287639129c1d71677fc62db610b5c2a7e67 /ufs
parent0689ec4e7dd22fbc20dd6d48b8d5272c0cbf1a22 (diff)
Formerly hyper.c.~9~
Diffstat (limited to 'ufs')
-rw-r--r--ufs/hyper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ufs/hyper.c b/ufs/hyper.c
index b39848ee..74415b63 100644
--- a/ufs/hyper.c
+++ b/ufs/hyper.c
@@ -107,7 +107,7 @@ diskfs_set_hypermetadata (int wait, int clean)
{
error_t (*writefn) (daddr_t, vm_address_t, long);
writefn = (wait ? dev_write_sync : dev_write);
-
+
spin_lock (&alloclock);
if (csum_dirty)
{
@@ -117,7 +117,7 @@ diskfs_set_hypermetadata (int wait, int clean)
csum_dirty = 0;
}
- if (clean)
+ if (clean && !diskfs_readonly)
{
sblock->fs_clean = 1;
sblock_dirty = 1;
@@ -146,7 +146,7 @@ diskfs_set_hypermetadata (int wait, int clean)
sblock_dirty = 0;
}
- if (clean)
+ if (clean && !diskfs_readonly)
{
sblock->fs_clean = 0;
sblock_dirty = 1;