summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2020-11-26 15:41:27 +0100
committerDavid Sterba <dsterba@suse.com>2020-12-09 19:16:05 +0100
commit1201b58b67b3642fd8cafa3604402bee40df1a6d (patch)
tree2704a476adca06a5cc1141d15c86d9f48e8c12e2 /fs/btrfs/extent_io.c
parent12659251ca5df05a484eb122c2c34c18d84e797c (diff)
downloadlinux-stable-1201b58b67b3642fd8cafa3604402bee40df1a6d.tar.gz
linux-stable-1201b58b67b3642fd8cafa3604402bee40df1a6d.tar.bz2
linux-stable-1201b58b67b3642fd8cafa3604402bee40df1a6d.zip
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>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index f514304b23bf..569d50ccf78a 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2886,7 +2886,7 @@ static void end_bio_extent_readpage(struct bio *bio)
btrfs_debug(fs_info,
"end_bio_extent_readpage: bi_sector=%llu, err=%d, mirror=%u",
- (u64)bio->bi_iter.bi_sector, bio->bi_status,
+ bio->bi_iter.bi_sector, bio->bi_status,
io_bio->mirror_num);
tree = &BTRFS_I(inode)->io_tree;
failure_tree = &BTRFS_I(inode)->io_failure_tree;