btrfs: Always pass 0 bio_offset for btree_submit_bio_start
authorNikolay Borisov <nborisov@suse.com>
Wed, 10 Apr 2019 14:24:42 +0000 (17:24 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:47 +0000 (19:02 +0200)
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>
fs/btrfs/disk-io.c

index 62983ff0c3e175623d2206527cc365877f4cf1cf..adc492848619262b78f9cb237bedb8d1a0bbbf2c 100644 (file)
@@ -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)