[dm-devel] [PATCH v2 07/11] dm: Introduce dm_report_zones()
Hannes Reinecke
hare at suse.de
Thu May 20 05:56:13 UTC 2021
On 5/20/21 6:22 AM, Damien Le Moal wrote:
> To simplify the implementation of the report_zones operation of a zoned
> target, introduce the function dm_report_zones() to set a target
> mapping start sector in struct dm_report_zones_args and call
> blkdev_report_zones(). This new function is exported and the report
> zones callback function dm_report_zones_cb() is not.
>
> dm-linear, dm-flakey and dm-crypt are modified to use dm_report_zones().
>
> Signed-off-by: Damien Le Moal <damien.lemoal at wdc.com>
> Reviewed-by: Johannes Thumshirn <johannes.thumshirn at wdc.com>
> ---
> drivers/md/dm-crypt.c | 7 +++----
> drivers/md/dm-flakey.c | 7 +++----
> drivers/md/dm-linear.c | 7 +++----
> drivers/md/dm-zone.c | 23 ++++++++++++++++++++---
> include/linux/device-mapper.h | 3 ++-
> 5 files changed, 31 insertions(+), 16 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare at suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare at suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer
More information about the dm-devel
mailing list