btrfs: use on-stack bio in repair_io_failure
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Apr 2022 04:45:20 +0000 (06:45 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:12 +0000 (17:03 +0200)
commite9458bfe5fff9588096a9f4e8975be762e313af4
treec9374da16ef90f5d76f55688c4f368e298a4d58b
parent91e3b5f1e293a2e617313a85bafd80d5eb4810f1
btrfs: use on-stack bio in repair_io_failure

The I/O in repair_io_failue is synchronous and doesn't need a btrfs_bio,
so just use an on-stack bio.  Also cleanup the error handling to use goto
labels and not discard the actual return values.

Reviewed-by: Qu Wenruo <wqu@suse.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/extent_io.c