]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc872eeb2ff36181a94e6dc87de390f089ea1c04
treefe9299aa1e6a9a628b76208d03271dbb367f190a
parentdca07aa2a5ef9ddf93f63ada47b9b8486181c69f
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