btrfs: Pass 0 for bio_offset to btrfs_wq_submit_bio
authorNikolay Borisov <nborisov@suse.com>
Wed, 10 Apr 2019 14:24:41 +0000 (17:24 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:46 +0000 (19:02 +0200)
commite7681167c36f451b1645211116ef287d9c47b07a
treefe9374f8ce23c10169979755569d80e3439ecb71
parentc2ccfbc62e9f00979fc1a82ab93ff0a4ddd8944a
btrfs: Pass 0 for bio_offset to btrfs_wq_submit_bio

Buffered writeback always calls btrfs_csum_one_bio with the last 2
arguments being 0 irrespective of what the bio_offset has been passed to
btrfs_submit_bio_start. Make this apparent by explicitly passing 0 for
bio_offset when calling btrfs_wq_submit_bio from btrfs_submit_bio_hook.
This will allow for further simplifications down the line. 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/inode.c