btrfs: move missing device handling in a dedicate function
authorNikolay Borisov <nborisov@suse.com>
Tue, 11 Jan 2022 16:00:26 +0000 (18:00 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 Feb 2022 15:19:47 +0000 (16:19 +0100)
commitc7621169137004a160dd3e2ad07978b4763a8adb
treee935f884bc8bc1e433566f3fee2632fbde15cdce
parent04929eb786c2c978328109e7c42b904f035d44f1
btrfs: move missing device handling in a dedicate function

This simplifies the code flow in read_one_chunk and makes error handling
when handling missing devices a bit simpler by reducing it to a single
check if something went wrong. No functional changes.

Reviewed-by: Su Yue <l@damenly.su>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c