]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Wed, 2 Jun 2021 18:11:21 +0000 (14:11 -0400)
commit9d410884a64c32b3270a380b3dbbdcdf77b85c0f
tree121de77a7b9f55e86fc7fc74665a880a406f437f
parent02214606d39963349bab9380b4e03b165e556de9
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