btrfs: factor stripe submission logic out of btrfs_map_bio
authorChristoph Hellwig <hch@lst.de>
Thu, 26 May 2022 07:36:41 +0000 (09:36 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:45:33 +0000 (17:45 +0200)
commita316a25991688ab037e5a41209736c017b5a9511
treea2ef53b0ec9e2278ebcfe8dc637384941c3699db
parentd7b9416fe5c581c69e446b971c4a0394c609fd89
btrfs: factor stripe submission logic out of btrfs_map_bio

Move all per-stripe handling into submit_stripe_bio and use a label to
cleanup instead of duplicating the logic.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c