summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2019-04-10 17:24:42 +0300
committerDavid Sterba <dsterba@suse.com>2019-04-29 20:02:47 +0300
commite68f2ee72181697d574e3049426b9d4fe5b5ec4d (patch)
tree9e516d7166b4c1fedbbe7795b0ca06b753e9d99c /fs
parente7681167c36f451b1645211116ef287d9c47b07a (diff)
downloadlinux-e68f2ee72181697d574e3049426b9d4fe5b5ec4d.tar.xz
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 <jthumshirn@suse.de> Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/disk-io.c3
1 files changed, 1 insertions, 2 deletions
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)