]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
btrfs: merge alloc_device helpers
authorDavid Sterba <dsterba@suse.com>
Wed, 14 Jun 2017 00:48:07 +0000 (02:48 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 14:12:04 +0000 (16:12 +0200)
commit2dfeca9bfb0cdd9b18bdb8d222a5e5f1479c5ca2
treeb140525cd0da1d949ce7101302386aeb8336706b
parent4b81ba48c66b1f927449585aa2a13bad8d91fcb4
btrfs: merge alloc_device helpers

There are two helpers called in chain from one location, we can merge the
functionaliy.

Originally, alloc_fs_devices could fill the device uuid randomly if we
we didn't give the uuid buffer. This happens for seed devices but the
fsid is generated in btrfs_prepare_sprout, so we can remove it.

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