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>
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);