summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
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)