From 9ebf803f04275f1958de9f378de68e45c377ac65 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 3 Dec 2000 04:41:34 +0000 Subject: 2000-12-02 Roland McGrath * inode.c (write_all_disknodes): Call diskfs_set_node_times after pokel_sync, since it might delay a little. (write_node): Remove assert that dn_set_mtime et al are clear. It is ok if they are set in parallel, because the latter setting will be carried out eventually. --- ext2fs/inode.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ext2fs') diff --git a/ext2fs/inode.c b/ext2fs/inode.c index 8b0e5db9..248347e1 100644 --- a/ext2fs/inode.c +++ b/ext2fs/inode.c @@ -409,7 +409,6 @@ write_node (struct node *np) if (np->dn->info.i_prealloc_count) ext2_discard_prealloc (np); - assert (!np->dn_set_ctime && !np->dn_set_atime && !np->dn_set_mtime); if (np->dn_stat_dirty) { struct ext2_inode_info *info = &np->dn->info; @@ -576,12 +575,12 @@ write_all_disknodes () { struct ext2_inode *di; - diskfs_set_node_times (node); - /* Sync the indirect blocks here; they'll all be done before any inodes. Waiting for them shouldn't be too bad. */ pokel_sync (&node->dn->indir_pokel, 1); + diskfs_set_node_times (node); + /* Update the inode image. */ di = write_node (node); if (di) -- cgit v1.2.3