jbd2: clean up checksum verification in do_one_pass()
authorShijie Luo <luoshijie1@huawei.com>
Tue, 11 Aug 2020 02:21:28 +0000 (22:21 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 19 Aug 2020 16:04:35 +0000 (12:04 -0400)
commit00a3fff0712cd9cc4112ecf6da0916f8503e2a86
tree7b3292c2f31f794eb401754d5f6c1d9f305e58af
parent70d7ced2ed4dc3f7f21b4f4fec0e5be5c2a5a55c
jbd2: clean up checksum verification in do_one_pass()

Remove the unnecessary chksum_err and checksum_seen variables as well as
some redundant code to make the function easier to understand.

[ With changes suggested by jack@ and tytso@ ]

Signed-off-by: Shijie Luo <luoshijie1@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20200819122955.33526-1-luoshijie1@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/recovery.c