btrfs: raid56: fold recover_assemble_read_bios into recover_rbio
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Jan 2023 06:23:29 +0000 (07:23 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 15 Feb 2023 18:38:54 +0000 (19:38 +0100)
commitd838d05ea5091044957d664b9f9c38fefcaf6d97
tree9e8473fa4198c027208d75f833a6f84aea6ef1dd
parent801fcfc5d790f4a9be2897713bd6dd08bed253f1
btrfs: raid56: fold recover_assemble_read_bios into recover_rbio

There is very little extra code in recover_rbio, and a large part of it
is the superfluous extra cleanup of the bio list.  Merge the two
functions, and only clean up the bio list after it has been added to
but before it has been emptied again by submit_read_wait_bio_list.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c