ext4: remove redundant sb checksum recomputation
authorJan Kara <jack@suse.cz>
Fri, 27 Nov 2020 11:33:55 +0000 (12:33 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 17 Dec 2020 18:30:55 +0000 (13:30 -0500)
commit81414b4dd48f596bf33e1b32c2e43e2047150ca6
treec5a2dd62696f951be1a1afe7c5160bdce4356fb4
parentb08070eca9e247f60ab39d79b2c25d274750441f
ext4: remove redundant sb checksum recomputation

Superblock is written out either through ext4_commit_super() or through
ext4_handle_dirty_super(). In both cases we recompute the checksum so it
is not necessary to recompute it after updating superblock free inodes &
blocks counters.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/20201127113405.26867-3-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c