]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: store precalculated csum_size in fs_info
authorDavid Sterba <dsterba@suse.com>
Thu, 2 Jul 2020 09:10:18 +0000 (11:10 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:53:58 +0000 (15:53 +0100)
commit3f7a9d200520618605931e649f78e22a3fe64c06
treefa75be6649cd24450abcd3d9367a15bb0560e01d
parent8c78e795c1237e87b16d9a0c7420a6d255f08d27
btrfs: store precalculated csum_size in fs_info

In many places we need the checksum size and it is inefficient to read
it from the raw superblock. Store the value into fs_info, actual use
will be in followup patches.  The size is u32 as it allows to generate
better assembly than with u16.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c