Skip to content

Commit

Permalink
dm zoned: add debugging message for reading superblocks
Browse files Browse the repository at this point in the history
Signed-off-by: Hannes Reinecke <[email protected]>
Reviewed-by: Damien Le Moal <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
  • Loading branch information
hreinecke authored and snitm committed Jun 5, 2020
1 parent 334b4fc commit 35d0c96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/md/dm-zoned-metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 35d0c96

Please sign in to comment.