OSDN Git Service

btrfs: simplify fsid and metadata_uuid comparisons
authorAnand Jain <anand.jain@oracle.com>
Wed, 24 May 2023 12:02:40 +0000 (20:02 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:29 +0000 (13:59 +0200)
commit1a8983450090c97bdc498d021fd74fc7e42cc38c
treea5f7275f2862b725bbd463d66c6028dd64112106
parent413fb1bc1d3224e508c698cd82e5ff1dc7d16d64
btrfs: simplify fsid and metadata_uuid comparisons

Refactor the functions find_fsid() and find_fsid_with_metadata_uuid(),
as they currently share a common set of code to compare the fsid and
metadata_uuid. Create a common helper function, match_fsid_fs_devices().

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