btrfs: merge calls to alloc_fs_devices in device_list_add
authorAnand Jain <anand.jain@oracle.com>
Wed, 24 May 2023 12:02:37 +0000 (20:02 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:29 +0000 (13:59 +0200)
commitc6930d7d11e30f55dee1e306bc3a3105fde56f93
treefd2bbc901c8d8ed1ec4975ad81ee30e27083ef33
parent19c4c49ca9d0eb14987386598e44a533a367f745
btrfs: merge calls to alloc_fs_devices in device_list_add

Simplify has_metadata_uuid checks - by localizing the has_metadata_uuid
checked within alloc_fs_devices()'s second argument, it improves the
code readability.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c