btrfs: raid56: simplify error handling and code flow in raid56_parity_write
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Jan 2023 06:23:25 +0000 (07:23 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 15 Feb 2023 18:38:54 +0000 (19:38 +0100)
commitabb49e87425be0d573bdafb9a5dbe2c64719796f
treefe4dcb28967f83c8f1d69270f661abd40565835b
parent79b02ec1d8ce1fafc8c39f888dbba6a3aa9a35cc
btrfs: raid56: simplify error handling and code flow in raid56_parity_write

Handle the error return on alloc_rbio failure directly instead of using
a goto and remove the queue_rbio goto label by moving the plugged
check into the if branch.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
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/raid56.c