]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
jbd2: remove redundant judgments for check v1 checksum
authorYe Bin <yebin10@huawei.com>
Mon, 30 Sep 2024 00:59:37 +0000 (08:59 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 13 Nov 2024 04:54:14 +0000 (23:54 -0500)
'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>
fs/jbd2/recovery.c

index 667f67342c522f9986c36ba8f31a97b68138aab7..5efbca6a98c4c9cd1fec0dbe22b34c8ab154f600 100644 (file)
@@ -619,7 +619,6 @@ static int do_one_pass(journal_t *journal,
                        if (pass != PASS_REPLAY) {
                                if (pass == PASS_SCAN &&
                                    jbd2_has_feature_checksum(journal) &&
-                                   !need_check_commit_time &&
                                    !info->end_transaction) {
                                        if (calc_chksums(journal, bh,
                                                        &next_log_block,