]> 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)
commitb73742ca0018fc73f47edee1b6f80958a3b77b74
tree7b3292c2f31f794eb401754d5f6c1d9f305e58af
parentc671929ef8b30735208e946b3391ab28d9ac78a0
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