]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48ede7281ba716adf543eb02f23bf4d064b59137
treec9374da16ef90f5d76f55688c4f368e298a4d58b
parent246f5b9779c96195d87c92482cfc1b70c3a524f8
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