Btrfs: move the missing device to its own fs device list
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 3 Sep 2014 13:35:46 +0000 (21:35 +0800)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:38:48 +0000 (13:38 -0700)
commit5f375835694426d00a7a4bc7fef72479578f279f
treebaaaa36a42866954e767b5a2ecc76e18e2c9c572
parent416d7b802a8bc044e98dc8bd96b59ce7a02287ac
Btrfs: move the missing device to its own fs device list

For a missing device, we don't know it belong to which fs before we read its
fsid from the chunk tree. So we add them into the current fs device list at first.
When we get its fsid, we should move them to their own fs device list.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/volumes.c