dm: move zone related code to dm-zone.c
authorDamien Le Moal <damien.lemoal@wdc.com>
Tue, 25 May 2021 21:24:56 +0000 (06:24 +0900)
committerMike Snitzer <snitzer@redhat.com>
Fri, 4 Jun 2021 16:07:31 +0000 (12:07 -0400)
commit7fc18728482b1a29bd7b8439a0ae7b3f23e097d1
treee396e7586b10ca69c82733f13ba82624d8cff972
parentdd73c320ec3089149b802a1316321c3e0f6a6aaf
dm: move zone related code to dm-zone.c

Move core and table code used for zoned targets and conditionally
defined with #ifdef CONFIG_BLK_DEV_ZONED to the new file dm-zone.c.
This file is conditionally compiled depending on CONFIG_BLK_DEV_ZONED.
The small helper dm_set_zones_restrictions() is introduced to
initialize a mapped device request queue zone attributes in
dm_table_set_restrictions().

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/Makefile
drivers/md/dm-table.c
drivers/md/dm-zone.c [new file with mode: 0644]
drivers/md/dm.c
drivers/md/dm.h