]> git.baikalelectronics.ru Git - kernel.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)
commit2fd3cd8313b6069e93cdf2ca0766a5a8dde5d2eb
treeb140525cd0da1d949ce7101302386aeb8336706b
parentbf43137b687a76970cda67a43246c0fe6354863e
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