From: Nikolay Borisov Date: Wed, 10 Apr 2019 14:24:42 +0000 (+0300) Subject: btrfs: Always pass 0 bio_offset for btree_submit_bio_start X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e68f2ee72181697d574e3049426b9d4fe5b5ec4d;p=openwrt%2Fstaging%2Fblogic.git btrfs: Always pass 0 bio_offset for btree_submit_bio_start The btree submit hook queues the async csum and forwards the bio_offset parameter passed to btree_submit_bio_hook. This is redundant since btree_submit_bio_start calls btree_csum_one_bio which doesn't use the offset at all. No functional changes. Reviewed-by: Johannes Thumshirn Signed-off-by: Nikolay Borisov Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 62983ff0c3e1..adc492848619 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -913,8 +913,7 @@ static blk_status_t btree_submit_bio_hook(struct inode *inode, struct bio *bio, * checksumming can happen in parallel across all CPUs */ ret = btrfs_wq_submit_bio(fs_info, bio, mirror_num, 0, - bio_offset, inode, - btree_submit_bio_start); + 0, inode, btree_submit_bio_start); } if (ret)