]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm: Introduce dm_report_zones()
authorDamien Le Moal <damien.lemoal@wdc.com>
Tue, 25 May 2021 21:24:57 +0000 (06:24 +0900)
committerMike Snitzer <snitzer@redhat.com>
Wed, 2 Jun 2021 18:15:55 +0000 (14:15 -0400)
commit1697e8d750d4bf4b9e92a63d0bad7ffe1ea64b17
tree29b036a6e992802abc8e0895c8e834c3afcbee94
parent9d410884a64c32b3270a380b3dbbdcdf77b85c0f
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>
drivers/md/dm-crypt.c
drivers/md/dm-flakey.c
drivers/md/dm-linear.c
drivers/md/dm-zone.c
include/linux/device-mapper.h