diff options
| author | Anand Jain <[email protected]> | 2023-05-24 20:02:42 +0800 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2023-06-19 13:59:29 +0200 |
| commit | 25984a5ae8f144e823468d39e483face534e45d1 (patch) | |
| tree | b18a29aba09d40bdc6437d9b994a18c81ba34079 /tools/perf/scripts/python | |
| parent | a3c54b0be1a218bdd8e42abf9ecfd9bddf1eadee (diff) | |
btrfs: consolidate uuid comparisons in btrfs_validate_super
There are three ways the fsid is validated in btrfs_validate_super():
- verify that super_copy::fsid is the same as fs_devices::fsid
- if the metadata_uuid flag is set, verify if super_copy::metadata_uuid
and fs_devices::metadata_uuid are the same.
- a few lines below, often missed out, verify if dev_item::fsid is the
same as fs_devices::metadata_uuid.
The function btrfs_validate_super() contains multiple if-statements with
memcmp() to check UUIDs. This patch consolidates them into a single
location.
Signed-off-by: Anand Jain <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions