]> 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)
commit24063ac454cdc8d2274c0853937dcafd13db0d5a
treeb140525cd0da1d949ce7101302386aeb8336706b
parent8986279f7e4facff2542f70d58f3e76de73156d5
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