summaryrefslogtreecommitdiff
path: root/ext2fs/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext2fs/dir.c')
-rw-r--r--ext2fs/dir.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/ext2fs/dir.c b/ext2fs/dir.c
index 334536d8..df306277 100644
--- a/ext2fs/dir.c
+++ b/ext2fs/dir.c
@@ -196,8 +196,7 @@ diskfs_lookup_hard (struct node *dp, const char *name, enum lookup_type type,
inum = 0;
- if (!diskfs_check_readonly ())
- dp->dn_set_atime = 1;
+ diskfs_set_node_atime (dp);
/* Start the lookup at DP->dn->dir_idx. */
idx = dp->dn->dir_idx;
@@ -234,8 +233,7 @@ diskfs_lookup_hard (struct node *dp, const char *name, enum lookup_type type,
}
}
- if (!diskfs_check_readonly ())
- dp->dn_set_atime = 1;
+ diskfs_set_node_atime (dp);
if (diskfs_synchronous)
diskfs_node_update (dp, 1);
@@ -778,8 +776,7 @@ diskfs_dirempty (struct node *dp, struct protid *cred)
mach_port_deallocate (mach_task_self (), memobj);
assert (!err);
- if (! diskfs_check_readonly ())
- dp->dn_set_atime = 1;
+ diskfs_set_node_atime (dp);
for (curoff = buf;
!hit && curoff < buf + dp->dn_stat.st_size;
@@ -795,8 +792,7 @@ diskfs_dirempty (struct node *dp, struct protid *cred)
hit = 1;
}
- if (! diskfs_check_readonly ())
- dp->dn_set_atime = 1;
+ diskfs_set_node_atime (dp);
if (diskfs_synchronous)
diskfs_node_update (dp, 1);