]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dm zoned: add debugging message for reading superblocks
authorHannes Reinecke <hare@suse.de>
Tue, 2 Jun 2020 11:09:42 +0000 (13:09 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 5 Jun 2020 18:59:43 +0000 (14:59 -0400)
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>
drivers/md/dm-zoned-metadata.c

index 4a2e351365c5a23f600f88c2c46fa3be50c80f4c..ef1524d5928a66024fdf52e12dea29a51775fa5d 100644 (file)
@@ -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);
 }