mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
dm: avoid split of quoted strings where possible
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@kernel.org>
This commit is contained in:
committed by
Mike Snitzer
parent
2d0f25cbc0
commit
2e84fecf19
@@ -1014,10 +1014,8 @@ static int dmz_check_sb(struct dmz_metadata *zmd, struct dmz_sb *dsb,
|
||||
|
||||
sb_block = le64_to_cpu(sb->sb_block);
|
||||
if (sb_block != (u64)dsb->zone->id << zmd->zone_nr_blocks_shift) {
|
||||
dmz_dev_err(dev, "Invalid superblock position "
|
||||
"(is %llu expected %llu)",
|
||||
sb_block,
|
||||
(u64)dsb->zone->id << zmd->zone_nr_blocks_shift);
|
||||
dmz_dev_err(dev, "Invalid superblock position (is %llu expected %llu)",
|
||||
sb_block, (u64)dsb->zone->id << zmd->zone_nr_blocks_shift);
|
||||
return -EINVAL;
|
||||
}
|
||||
if (zmd->sb_version > 1) {
|
||||
@@ -1030,16 +1028,14 @@ static int dmz_check_sb(struct dmz_metadata *zmd, struct dmz_sb *dsb,
|
||||
} else if (uuid_is_null(&zmd->uuid)) {
|
||||
uuid_copy(&zmd->uuid, &sb_uuid);
|
||||
} else if (!uuid_equal(&zmd->uuid, &sb_uuid)) {
|
||||
dmz_dev_err(dev, "mismatching DM-Zoned uuid, "
|
||||
"is %pUl expected %pUl",
|
||||
dmz_dev_err(dev, "mismatching DM-Zoned uuid, is %pUl expected %pUl",
|
||||
&sb_uuid, &zmd->uuid);
|
||||
return -ENXIO;
|
||||
}
|
||||
if (!strlen(zmd->label))
|
||||
memcpy(zmd->label, sb->dmz_label, BDEVNAME_SIZE);
|
||||
else if (memcmp(zmd->label, sb->dmz_label, BDEVNAME_SIZE)) {
|
||||
dmz_dev_err(dev, "mismatching DM-Zoned label, "
|
||||
"is %s expected %s",
|
||||
dmz_dev_err(dev, "mismatching DM-Zoned label, is %s expected %s",
|
||||
sb->dmz_label, zmd->label);
|
||||
return -ENXIO;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user