diff options
author | Anand Jain <anand.jain@oracle.com> | 2016-04-14 18:24:10 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-05-04 09:52:44 +0200 |
commit | 8ed01abe7da6af62f2089da9a4c1fe839dc638f5 (patch) | |
tree | dfa4f934f163c593995b20a897df8d5872948b71 /fs/btrfs/volumes.h | |
parent | b5255456c529155730c837f8cfcea47e8feb85ca (diff) |
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: Anand Jain <anand.jain@oracle.com>
Reported-by: Yauhen Kharuzhy <yauhen.kharuzhy@zavadatar.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
0 files changed, 0 insertions, 0 deletions