Browse Source

ext4_journal: fix not purging enough transactions

We have to purge all consecutive transactions that
has all its buffers written to persistent location.
pull/28/head
Kaho Ng 7 years ago
parent
commit
f371bc8b84
  1. 2
      src/ext4_journal.c

2
src/ext4_journal.c

@ -2141,7 +2141,7 @@ static void jbd_trans_end_write(struct ext4_bcache *bc __unused,
TAILQ_REMOVE(&journal->cp_queue, trans, trans_node); TAILQ_REMOVE(&journal->cp_queue, trans, trans_node);
jbd_journal_free_trans(journal, trans, false); jbd_journal_free_trans(journal, trans, false);
jbd_journal_purge_cp_trans(journal, false, true); jbd_journal_purge_cp_trans(journal, false, false);
jbd_journal_write_sb(journal); jbd_journal_write_sb(journal);
jbd_write_sb(journal->jbd_fs); jbd_write_sb(journal->jbd_fs);
} }

Loading…
Cancel
Save