]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit613704c01d93d32682d907b490233a5119450566
tree9e516d7166b4c1fedbbe7795b0ca06b753e9d99c
parent18a7018d1341847f2ae2e7b34185b3137e322117
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>
fs/btrfs/disk-io.c