diff options
author | Hannes Reinecke <hare@suse.de> | 2020-06-02 13:09:49 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-06-05 14:59:49 -0400 |
commit | 18979819b57ecbc598a8e27d925ab4bb9e145cf0 (patch) | |
tree | 4861c3c98531bc7c20a6aae7beb7d74071bdaf0e /drivers/md/dm-zoned.h | |
parent | 8f22272af7a72763fe9f6b710cdcc380fed80f75 (diff) | |
download | linux-stable-18979819b57ecbc598a8e27d925ab4bb9e145cf0.tar.gz linux-stable-18979819b57ecbc598a8e27d925ab4bb9e145cf0.tar.bz2 linux-stable-18979819b57ecbc598a8e27d925ab4bb9e145cf0.zip |
dm zoned: add metadata pointer to struct dmz_dev
Add a metadata pointer within struct dmz_dev and use it as argument
for blkdev_report_zones() instead of the metadata itself.
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 'drivers/md/dm-zoned.h')
-rw-r--r-- | drivers/md/dm-zoned.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/md/dm-zoned.h b/drivers/md/dm-zoned.h index 316344bf07bd..983f5b5e9fa0 100644 --- a/drivers/md/dm-zoned.h +++ b/drivers/md/dm-zoned.h @@ -45,11 +45,15 @@ #define dmz_bio_block(bio) dmz_sect2blk((bio)->bi_iter.bi_sector) #define dmz_bio_blocks(bio) dmz_sect2blk(bio_sectors(bio)) +struct dmz_metadata; +struct dmz_reclaim; + /* * Zoned block device information. */ struct dmz_dev { struct block_device *bdev; + struct dmz_metadata *metadata; char name[BDEVNAME_SIZE]; uuid_t uuid; @@ -170,9 +174,6 @@ enum { #define dmz_dev_debug(dev, format, args...) \ DMDEBUG("(%s): " format, (dev)->name, ## args) -struct dmz_metadata; -struct dmz_reclaim; - /* * Functions defined in dm-zoned-metadata.c */ |