summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-06-25 21:31:35 +0000
committerMiles Bader <miles@gnu.org>1996-06-25 21:31:35 +0000
commitcec48d4b977cb95a22d777d4e6c6ad142adf7bd9 (patch)
treeb067c4e63add4d8f6d7b8fa49111b1a47e26314c
parent164936445e8557078a7deba8a64e3271407e6bd8 (diff)
(diskfs_lookup_hard, diskfs_dirempty):
Use diskfs_check_readonly instead of diskfs_readonly.
-rw-r--r--ext2fs/dir.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext2fs/dir.c b/ext2fs/dir.c
index c0a7a0d7..36fcfd58 100644
--- a/ext2fs/dir.c
+++ b/ext2fs/dir.c
@@ -161,7 +161,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;
@@ -178,7 +178,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);
@@ -692,7 +692,7 @@ diskfs_dirempty (struct node *dp, struct protid *cred)
mach_port_deallocate (mach_task_self (), memobj);
assert (!err);
- if (! diskfs_readonly)
+ if (! diskfs_check_readonly ())
dp->dn_set_atime = 1;
for (curoff = buf;
@@ -709,7 +709,7 @@ diskfs_dirempty (struct node *dp, struct protid *cred)
hit = 1;
}
- if (! diskfs_readonly)
+ if (! diskfs_check_readonly ())
dp->dn_set_atime = 1;
if (diskfs_synchronous)
diskfs_node_update (dp, 1);