]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit29bee22f0c606e91a74c63a026493df373c72199
tree7b3292c2f31f794eb401754d5f6c1d9f305e58af
parent2671bcf467a5be83d9a80347c7eab79a2f82dbc2
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