btrfs: merge alloc_device helpers
authorDavid Sterba <dsterba@suse.com>
Mon, 26 Jul 2021 12:15:21 +0000 (14:15 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Aug 2021 11:19:03 +0000 (13:19 +0200)
commitfe4f46d40c1c2ff78a8a7280e455f115c32e6b41
tree31723a0d1c82d85eb0a8906d74037288f1c4bc1e
parent500a44c9b301ae1844e38606c4bff4f15c174fb0
btrfs: merge alloc_device helpers

The device allocation is split to two functions, but one just calls the
other and they're very far in the file. Merge them together.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c