Skip to content
Commit 8ed01abe authored by Anand Jain's avatar Anand Jain Committed by David Sterba
Browse files

btrfs: s_bdev is not null after missing replace



Yauhen reported in the ML that s_bdev is null at mount, and
s_bdev gets updated to some device when missing device is
replaced, as because bdev is null for missing device, things
gets matched up. Fix this by checking if s_bdev is set. I
didn't want to completely remove updating s_bdev because
the future multi device support at vfs layer may need it.

Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Reported-by: default avatarYauhen Kharuzhy <yauhen.kharuzhy@zavadatar.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent b5255456
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