From ef8b5004db62bdbb291f83bdc0b2de32713b0b42 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 24 Jun 1996 21:24:48 +0000 Subject: (diskfs_cached_lookup): Use diskfs_check_readonly instead of diskfs_readonly. (read_symlink_hook): Likewise. --- ufs/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ufs') 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 (); -- cgit v1.2.3