summaryrefslogtreecommitdiff
path: root/ufs/inode.c
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
commitef8b5004db62bdbb291f83bdc0b2de32713b0b42 (patch)
tree9bcd8f36512cfc815cc7655747a0175ab97b2827 /ufs/inode.c
parent7eb2e7af3cfe59e9e22f347ecb686ad84356e45d (diff)
(diskfs_cached_lookup): Use diskfs_check_readonly instead of diskfs_readonly.
(read_symlink_hook): Likewise.
Diffstat (limited to 'ufs/inode.c')
-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 ();