btrfs: switch cached fs_info::csum_size from u16 to u32
authorDavid Sterba <dsterba@suse.com>
Thu, 2 Jul 2020 09:27:30 +0000 (11:27 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:53:59 +0000 (15:53 +0100)
commit223486c27b369a10ceb6180c40d7aa354e903446
tree26f5d18a30be1e251900158f0af6e65611f56369
parent55fc29bed8ddb4c3848ecf8cf7133e34c946f223
btrfs: switch cached fs_info::csum_size from u16 to u32

The fs_info value is 32bit, switch also the local u16 variables. This
leads to a better assembly code generated due to movzwl.

This simple change will shave some bytes on x86_64 and release config:

   text    data     bss     dec     hex filename
1090000   17980   14912 1122892  11224c pre/btrfs.ko
1089794   17980   14912 1122686  11217e post/btrfs.ko

DELTA: -206

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/btrfs_inode.h
fs/btrfs/compression.c
fs/btrfs/disk-io.c
fs/btrfs/extent_io.c
fs/btrfs/file-item.c
fs/btrfs/inode.c
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h
fs/btrfs/tree-checker.c