Skip to content
Commit 9c3beebd authored by Nikolay Borisov's avatar Nikolay Borisov Committed by Greg Kroah-Hartman
Browse files

btrfs: move missing device handling in a dedicate function



[ Upstream commit ff37c89f ]

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: default avatarSu Yue <l@damenly.su>
Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
Stable-dep-of: 1742e1c9 ("btrfs: fix extent map use-after-free when handling missing device in read_one_chunk")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7528b21c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment