add patch improve-code-readability-in-ext4_iget
[ext4-patch-queue.git] / jbd2-dont-double-bump-transaction-number
blob6eedc1588e9c0008c5e4759d0f693e05a39b7536
1 jbd2: don't skip a transaction number when recovering journal
3 In the lazy journalling patches we retain the journal, so skipping a
4 transaction after the replay is problematic.
6 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 ---
8  fs/jbd2/recovery.c | 2 +-
9  1 file changed, 1 insertion(+), 1 deletion(-)
11 diff --git a/fs/jbd2/recovery.c b/fs/jbd2/recovery.c
12 index 02dd3360cb20..da100044566c 100644
13 --- a/fs/jbd2/recovery.c
14 +++ b/fs/jbd2/recovery.c
15 @@ -281,7 +281,7 @@ int jbd2_journal_recover(journal_t *journal)
17         /* Restart the log at the next transaction ID, thus invalidating
18          * any existing commit records in the log. */
19 -       journal->j_transaction_sequence = ++info.end_transaction;
20 +       journal->j_transaction_sequence = info.end_transaction;
22         jbd2_journal_clear_revoke(journal);
23         err2 = sync_blockdev(journal->j_fs_dev);