summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-24 21:24:48 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-24 21:24:48 +0000
commit9505b47ffb5ca90b143a09b2602b7adceef1ad59 (patch)
treeb04f1e4f455be7817dd9f9af162b7efbe8bdcfa8
parent41e7ae8cc4056eb04dd7cd65002b079d3d7d2cb1 (diff)
(diskfs_cached_lookup): Use diskfs_check_readonly instead of diskfs_readonly.
(read_symlink_hook): Likewise.
-rw-r--r--ufs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ufs/inode.c b/ufs/inode.c
index 51af3446..c3eec832 100644
--- a/ufs/inode.c
+++ b/ufs/inode.c
@@ -86,7 +86,7 @@ diskfs_cached_lookup (int inum, struct node **npp)
err = read_disknode (np);
- if (!diskfs_readonly && !np->dn_stat.st_gen)
+ if (!diskfs_check_readonly () && !np->dn_stat.st_gen)
{
spin_lock (&gennumberlock);
if (++nextgennumber < diskfs_mtime->seconds)
@@ -415,7 +415,7 @@ read_symlink_hook (struct node *np,
bcopy ((dino (np->dn->number))->di_shortlink, buf, np->dn_stat.st_size);
- if (! diskfs_readonly)
+ if (! diskfs_check_readonly ())
np->dn_set_atime = 1;
diskfs_end_catch_exception ();