summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-12-03 04:41:34 +0000
committerRoland McGrath <roland@gnu.org>2000-12-03 04:41:34 +0000
commit9ebf803f04275f1958de9f378de68e45c377ac65 (patch)
treeb18a4b446e8e2743ae91a451ef877390cf5f019e /ext2fs
parent480862ac2dbb48d380f1cf6b29857dca1d80e260 (diff)
2000-12-02 Roland McGrath <roland@frob.com>
* 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.
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/inode.c5
1 files changed, 2 insertions, 3 deletions
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)