jbd2: open code jbd2_verify_csum_type() helper
authorZhang Yi <yi.zhang@huawei.com>
Fri, 11 Aug 2023 06:36:03 +0000 (14:36 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 15 Aug 2023 13:00:33 +0000 (09:00 -0400)
commit18dad509e7bd3189ac1e7f7904faf1561a908871
tree15ef8dc7de67318f62201ca994c4784fafca5f99
parente4adf8b837087b5bb57fff6827e10ec877a50f64
jbd2: open code jbd2_verify_csum_type() helper

jbd2_verify_csum_type() helper check checksum type in the superblock for
v2 or v3 checksum feature, it always return true if these features are
not enabled, and it has only one user, so open code it is more clear.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230811063610.2980059-6-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/journal.c