summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2020-06-02 13:09:42 +0200
committerMike Snitzer <snitzer@redhat.com>2020-06-05 20:59:43 +0200
commit35d0c96e422a484bbc5d4921fa20dcc880bfba2c (patch)
tree796fb49488da660f4a9403c554b95341da59dbe9
parentdm ebs: use dm_bufio_forget_buffers (diff)
downloadlinux-35d0c96e422a484bbc5d4921fa20dcc880bfba2c.tar.xz
linux-35d0c96e422a484bbc5d4921fa20dcc880bfba2c.zip
dm zoned: add debugging message for reading superblocks
Signed-off-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/md/dm-zoned-metadata.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/md/dm-zoned-metadata.c b/drivers/md/dm-zoned-metadata.c
index 4a2e351365c5..ef1524d5928a 100644
--- a/drivers/md/dm-zoned-metadata.c
+++ b/drivers/md/dm-zoned-metadata.c
@@ -1105,6 +1105,10 @@ static int dmz_check_sb(struct dmz_metadata *zmd, unsigned int set)
*/
static int dmz_read_sb(struct dmz_metadata *zmd, unsigned int set)
{
+ dmz_zmd_debug(zmd, "read superblock set %d dev %s block %llu",
+ set, zmd->sb[set].dev->name,
+ zmd->sb[set].block);
+
return dmz_rdwr_block(zmd->sb[set].dev, REQ_OP_READ,
zmd->sb[set].block, zmd->sb[set].mblk->page);
}