summaryrefslogtreecommitdiff
path: root/ufs/dir.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-24 21:25:22 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-24 21:25:22 +0000
commitbe7f748beac60afec491f21cfd3eacf48e088cbc (patch)
tree7d5315910201583888037364b6acd8226fcf00e3 /ufs/dir.c
parentef8b5004db62bdbb291f83bdc0b2de32713b0b42 (diff)
(diskfs_lookup_hard): Use diskfs_check_readonly instead of
diskfs_readonly. (diskfs_dirempty): Likewise.
Diffstat (limited to 'ufs/dir.c')
-rw-r--r--ufs/dir.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ufs/dir.c b/ufs/dir.c
index 9abcdbea..d015a6c6 100644
--- a/ufs/dir.c
+++ b/ufs/dir.c
@@ -153,7 +153,7 @@ diskfs_lookup_hard (struct node *dp, char *name, enum lookup_type type,
inum = 0;
- if (!diskfs_readonly)
+ if (!diskfs_check_readonly ())
dp->dn_set_atime = 1;
for (blockaddr = buf, idx = 0;
@@ -170,7 +170,7 @@ diskfs_lookup_hard (struct node *dp, char *name, enum lookup_type type,
}
}
- if (!diskfs_readonly)
+ if (!diskfs_check_readonly ())
dp->dn_set_atime = 1;
if (diskfs_synchronous)
diskfs_node_update (dp, 1);
@@ -705,7 +705,7 @@ diskfs_dirempty(struct node *dp,
mach_port_deallocate (mach_task_self (), memobj);
assert (!err);
- if (!diskfs_readonly)
+ if (!diskfs_check_readonly ())
dp->dn_set_atime = 1;
for (curoff = buf;
@@ -721,14 +721,14 @@ diskfs_dirempty(struct node *dp,
&& entry->d_name[1] != '\0')))
{
vm_deallocate (mach_task_self (), buf, dp->dn_stat.st_size);
- if (!diskfs_readonly)
+ if (!diskfs_check_readonly ())
dp->dn_set_atime = 1;
if (diskfs_synchronous)
diskfs_node_update (dp, 1);
return 0;
}
}
- if (!diskfs_readonly)
+ if (!diskfs_check_readonly ())
dp->dn_set_atime = 1;
if (diskfs_synchronous)
diskfs_node_update (dp, 1);