aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e2fsck/journal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/e2fsck/journal.c b/e2fsck/journal.c
index 155857d9..30230575 100644
--- a/e2fsck/journal.c
+++ b/e2fsck/journal.c
@@ -842,6 +842,9 @@ static errcode_t recover_ext3_journal(e2fsck_t ctx)
mark_buffer_dirty(journal->j_sb_buffer);
}
+ if (ctx->fs->flags & EXT2_FLAG_DIRTY)
+ ext2fs_flush(ctx->fs); /* Force out any modifications */
+
errout:
journal_destroy_revoke(journal);
journal_destroy_revoke_caches();