btrfs: add helper function find_fsid_by_disk
authorAnand Jain <anand.jain@oracle.com>
Thu, 28 Sep 2023 01:09:46 +0000 (09:09 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:17 +0000 (16:44 +0200)
commit69d427f34ca0970c2280cccd64e24aa62ff7904a
tree0033bef6da3bf9caf1c78a20c033efcf71fc9a86
parent9ef17228e1096e7e75bdde752ae1f0e9a5bcc8ab
btrfs: add helper function find_fsid_by_disk

In preparation for adding support to mount multiple single-disk
btrfs filesystems with the same FSID, wrap find_fsid() into
find_fsid_by_disk().

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