btrfs: simplify memcpy either of metadata_uuid or fsid
authorAnand Jain <anand.jain@oracle.com>
Mon, 31 Jul 2023 11:16:33 +0000 (19:16 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2023 12:54:48 +0000 (14:54 +0200)
commit319baafcef2e075f515fce6a89e833f7aeae8484
treeb894588404de4d8feb49a711d54a6f1e14c94385
parent4844c3664a72d36cc79752cb651c78860b14c240
btrfs: simplify memcpy either of metadata_uuid or fsid

There is a helper which provides either metadata_uuid or fsid as per
METADATA_UUID flag. So use it.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Tested-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c