Damien Le Moal 912e887505 dm: Introduce dm_report_zones()
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@wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2021-06-04 12:07:32 -04:00
..
2021-06-04 12:07:32 -04:00
2021-03-26 14:53:42 -04:00
2021-06-04 12:07:32 -04:00
2021-02-26 15:49:51 -07:00
2021-06-04 12:07:32 -04:00
2021-02-26 15:49:51 -07:00
2021-04-19 13:13:26 -04:00
2021-06-04 12:07:32 -04:00
2021-06-04 12:07:31 -04:00
2021-06-04 12:07:31 -04:00
2021-02-03 10:13:00 -05:00
2020-12-16 13:09:32 -08:00