btrfs: get device pointer from device_list_add()
authorAnand Jain <anand.jain@oracle.com>
Thu, 18 Jan 2018 14:02:35 +0000 (22:02 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Jan 2018 18:31:15 +0000 (19:31 +0100)
commite124ece53edf3a80d594fa537d5c0a37b26f4eb7
treef025bc6e4a72d0fd6cbc58dcee0772c8a43dc721
parentf2788d2f76cafef160e959999624c6a87e71d26d
btrfs: get device pointer from device_list_add()

Instead of pointer to btrfs_fs_devices as an arg in device_list_add()
better to get pointer to btrfs_device as return value, then we have
both, pointer to btrfs_device and btrfs_fs_devices. btrfs_device is
needed to handle reappearing missing device.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c