btrfs: insert newly opened device to the end of the list
authorAnand Jain <anand.jain@oracle.com>
Mon, 22 Jan 2018 22:49:37 +0000 (14:49 -0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Mar 2018 13:09:37 +0000 (15:09 +0200)
commitb1b8e38622ea044ccdee0460253e428cb6e9038e
treefe9299aa1e6a9a628b76208d03271dbb367f190a
parentf8e10cd3f8dd3b15ea49f820a0d2decf3c654b13
btrfs: insert newly opened device to the end of the list

Add opened device to the tail of dev_alloc_list instead of head, so that
it maintains the same order as dev_list.

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