Lines Matching refs:journal
4 Subject: [PATCH] e2fsck: exit journal recovery when jounral superblock fails
10 To fix this case, we use "fatal_error" when recover journal failed.
11 So we can reserve the recovery flag to recover the journal when try e2fsck again.
25 e2fsck/journal.c | 26 ++++++++++++++++++++++++--
28 diff --git a/e2fsck/journal.c b/e2fsck/journal.c
30 --- a/e2fsck/journal.c
31 +++ b/e2fsck/journal.c
36 -static void e2fsck_journal_release(e2fsck_t ctx, journal_t *journal,
37 +static errcode_t e2fsck_journal_release(e2fsck_t ctx, journal_t *journal,
45 mark_buffer_clean(journal->j_sb_buffer);
46 @@ -1461,6 +1463,16 @@ static void e2fsck_journal_release(e2fsck_t ctx, journal_t *journal,
48 brelse(journal->j_sb_buffer);
51 + err = sync_blockdev(journal->j_fs_dev);
53 + if (journal->j_flags & JBD2_BARRIER) {
54 + err2 = blkdev_issue_flush(journal->j_fs_dev);
63 @@ -1474,6 +1486,8 @@ static void e2fsck_journal_release(e2fsck_t ctx, journal_t *journal,
64 if (journal->j_fs_dev)
65 ext2fs_free_mem(&journal->j_fs_dev);
66 ext2fs_free_mem(&journal);
74 journal_t *journal;
81 jbd2_journal_destroy_revoke(journal);
84 - e2fsck_journal_release(ctx, journal, 1, 0);
85 + recover_retval = e2fsck_journal_release(ctx, journal, 1, 0);
89 + _("e2fsck journal release failed "