Commit ae3c1f11 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Mike Snitzer

dm zoned: Reduce logging output on startup

dm-zoned is becoming quite chatty during startup; reduce the noise
by moving some information to 'debug' level.
Suggested-by: default avatarMike Snitzer <snitzer@redhat.com>
Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
Reviewed-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent ca1a7045
...@@ -1279,7 +1279,7 @@ static int dmz_init_zones(struct dmz_metadata *zmd) ...@@ -1279,7 +1279,7 @@ static int dmz_init_zones(struct dmz_metadata *zmd)
if (!zmd->zones) if (!zmd->zones)
return -ENOMEM; return -ENOMEM;
DMINFO("(%s): Using %zu B for zone information", DMDEBUG("(%s): Using %zu B for zone information",
zmd->devname, sizeof(struct dm_zone) * zmd->nr_zones); zmd->devname, sizeof(struct dm_zone) * zmd->nr_zones);
/* /*
...@@ -2563,15 +2563,15 @@ int dmz_ctr_metadata(struct dmz_dev *dev, struct dmz_metadata **metadata, ...@@ -2563,15 +2563,15 @@ int dmz_ctr_metadata(struct dmz_dev *dev, struct dmz_metadata **metadata,
dmz_zmd_info(zmd, " %u zones of %llu 512-byte logical sectors", dmz_zmd_info(zmd, " %u zones of %llu 512-byte logical sectors",
zmd->nr_zones, (u64)zmd->zone_nr_sectors); zmd->nr_zones, (u64)zmd->zone_nr_sectors);
dmz_zmd_info(zmd, " %u metadata zones", dmz_zmd_debug(zmd, " %u metadata zones",
zmd->nr_meta_zones * 2); zmd->nr_meta_zones * 2);
dmz_zmd_info(zmd, " %u data zones for %u chunks", dmz_zmd_debug(zmd, " %u data zones for %u chunks",
zmd->nr_data_zones, zmd->nr_chunks); zmd->nr_data_zones, zmd->nr_chunks);
dmz_zmd_info(zmd, " %u random zones (%u unmapped)", dmz_zmd_debug(zmd, " %u random zones (%u unmapped)",
zmd->nr_rnd, atomic_read(&zmd->unmap_nr_rnd)); zmd->nr_rnd, atomic_read(&zmd->unmap_nr_rnd));
dmz_zmd_info(zmd, " %u sequential zones (%u unmapped)", dmz_zmd_debug(zmd, " %u sequential zones (%u unmapped)",
zmd->nr_seq, atomic_read(&zmd->unmap_nr_seq)); zmd->nr_seq, atomic_read(&zmd->unmap_nr_seq));
dmz_zmd_info(zmd, " %u reserved sequential data zones", dmz_zmd_debug(zmd, " %u reserved sequential data zones",
zmd->nr_reserved_seq); zmd->nr_reserved_seq);
dmz_zmd_debug(zmd, "Format:"); dmz_zmd_debug(zmd, "Format:");
dmz_zmd_debug(zmd, "%u metadata blocks per set (%u max cache)", dmz_zmd_debug(zmd, "%u metadata blocks per set (%u max cache)",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment