Message ID | a64190e85372479d9e6195e5922a5082@hikvision.com |
---|---|
State | Not Applicable |
Headers | show |
Series | 答复: [PATCH v6] jbd2: avoid transaction reuse after reformatting | expand |
diff --git a/fs/jbd2/recovery.c b/fs/jbd2/recovery.c index faa97d748474..fb134c7a12c8 100644 --- a/fs/jbd2/recovery.c +++ b/fs/jbd2/recovery.c @@ -428,6 +428,8 @@ static int do_one_pass(journal_t *journal, __u32crc32_sum = ~0; /* Transactional Checksums */ intdescr_csum_size = 0; intblock_error = 0; +boolneed_check_commit_time = false; +__u64last_trans_commit_time = 0, commit_time; /* * First thing is to establish what we expect to find in the log @@ -520,12 +522,21 @@ static int do_one_pass(journal_t *journal,