btrfs: drop casts of bio bi_sector
authorDavid Sterba <dsterba@suse.com>
Thu, 26 Nov 2020 14:41:27 +0000 (15:41 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 9 Dec 2020 18:16:05 +0000 (19:16 +0100)
commit1201b58b67b3642fd8cafa3604402bee40df1a6d
tree2704a476adca06a5cc1141d15c86d9f48e8c12e2
parent12659251ca5df05a484eb122c2c34c18d84e797c
btrfs: drop casts of bio bi_sector

Since commit 72deb455b5ec ("block: remove CONFIG_LBDAF") (5.2) the
sector_t type is u64 on all arches and configs so we don't need to
typecast it.  It used to be unsigned long and the result of sector size
shifts were not guaranteed to fit in the type.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/check-integrity.c
fs/btrfs/compression.c
fs/btrfs/extent_io.c
fs/btrfs/file-item.c
fs/btrfs/inode.c
fs/btrfs/raid56.c
fs/btrfs/volumes.c