diff options
| author | Michael I. Bushnell <mib@gnu.org> | 1996-06-24 21:25:22 +0000 |
|---|---|---|
| committer | Michael I. Bushnell <mib@gnu.org> | 1996-06-24 21:25:22 +0000 |
| commit | f99f473d18563d7167793f9391e73f9c6d802cc3 (patch) | |
| tree | 6cb82b1aaefa758e9c89e521dbcf65a77bc1b735 | |
| parent | 9505b47ffb5ca90b143a09b2602b7adceef1ad59 (diff) | |
(diskfs_lookup_hard): Use diskfs_check_readonly instead of
diskfs_readonly.
(diskfs_dirempty): Likewise.
| -rw-r--r-- | ufs/dir.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |
