Skip to content

Commit 4309a94

Browse files
Ye Bintytso
authored andcommitted
jbd2: remove redundant judgments for check v1 checksum
'need_check_commit_time' is only used by v2/v3 checksum, so there isn't need to add 'need_check_commit_time' judegement for v1 checksum logic. Signed-off-by: Ye Bin <yebin10@huawei.com> Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Zhang Yi <yi.zhang@huawei.com> Link: https://patch.msgid.link/20240930005942.626942-2-yebin@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 5ad585b commit 4309a94

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/jbd2/recovery.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,6 @@ static int do_one_pass(journal_t *journal,
619619
if (pass != PASS_REPLAY) {
620620
if (pass == PASS_SCAN &&
621621
jbd2_has_feature_checksum(journal) &&
622-
!need_check_commit_time &&
623622
!info->end_transaction) {
624623
if (calc_chksums(journal, bh,
625624
&next_log_block,

0 commit comments

Comments
 (0)