]> asedeno.scripts.mit.edu Git - linux.git/commit
btrfs: Factor out metadata_uuid code from find_fsid.
authorSu Yue <Damenly_Su@gmx.com>
Fri, 10 Jan 2020 12:11:33 +0000 (14:11 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 23 Jan 2020 16:24:38 +0000 (17:24 +0100)
commitc6730a0e5778bf2d83189f97ab5e3efe61f6aad1
tree5fc4741a9e13101db3d114bc518de6b83ed2e324
parentc0d81c7cb236782d674ae5701d1a237949e47a7a
btrfs: Factor out metadata_uuid code from find_fsid.

find_fsid became rather hairy with the introduction of metadata uuid
changing feature. Alleviate this by factoring out the metadata uuid
specific code in a dedicated function which deals with finding
correct fsid for a device with changed uuid.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Su Yue <Damenly_Su@gmx.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c