btrfs: stop looking at btrfs_bio->iter in index_one_bio
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Jun 2022 06:57:42 +0000 (08:57 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:34 +0000 (17:45 +0200)
commit5eecef7108350f6506a55d8fd9508ea32caeecad
tree4f288c3b71782a4f55cf8ec6569410062bbfb2e1
parentdc4d31684974d140250f3ee612c3f0cab13b3146
btrfs: stop looking at btrfs_bio->iter in index_one_bio

All the bios that index_one_bio operates on are the bios submitted by the
upper layer.  These are never resubmitted to an actual device by the
raid56 code, and thus the iter never changes from the initial state.
Thus we can always just use bi_iter directly as it will be the same as
the saved copy.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c