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, 14 Mar 2022 12:13:46 +0000 (13:13 +0100)
commitff37c89f94be14b0e22a532d1e6d57187bfd5bb8
tree9800a94149b75f0749c266693848026d4ca4b12a
parentde6bc7f59896e888d388a2b469807a4d4b4ab55e
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