btrfs: use cached value of fs_info::csum_size everywhere
btrfs_get_16 shows up in the system performance profiles (helper to read 16bit values from on-disk structures). This is partially because of the checksum size that's frequently read along with data reads/writes, other u16 uses are from item size or directory entries. Replace all calls to btrfs_super_csum_size by the cached value from fs_info. Reviewed-by:Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by:
Qu Wenruo <wqu@suse.com> Signed-off-by:
David Sterba <dsterba@suse.com>
Showing
- fs/btrfs/btrfs_inode.h 1 addition, 2 deletionsfs/btrfs/btrfs_inode.h
- fs/btrfs/check-integrity.c 1 addition, 1 deletionfs/btrfs/check-integrity.c
- fs/btrfs/compression.c 3 additions, 3 deletionsfs/btrfs/compression.c
- fs/btrfs/disk-io.c 3 additions, 3 deletionsfs/btrfs/disk-io.c
- fs/btrfs/extent_io.c 1 addition, 1 deletionfs/btrfs/extent_io.c
- fs/btrfs/file-item.c 7 additions, 7 deletionsfs/btrfs/file-item.c
- fs/btrfs/inode.c 3 additions, 3 deletionsfs/btrfs/inode.c
- fs/btrfs/ordered-data.c 1 addition, 1 deletionfs/btrfs/ordered-data.c
- fs/btrfs/ordered-data.h 1 addition, 1 deletionfs/btrfs/ordered-data.h
- fs/btrfs/scrub.c 1 addition, 1 deletionfs/btrfs/scrub.c
- fs/btrfs/tree-checker.c 1 addition, 1 deletionfs/btrfs/tree-checker.c
Loading
Please register or sign in to comment