[dm-devel] [PATCH v2 06/11] dm: move zone related code to dm-zone.c
Hannes Reinecke
hare at suse.de
Thu May 20 05:54:42 UTC 2021
On 5/20/21 6:22 AM, Damien Le Moal wrote:
> 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 at wdc.com>
> Reviewed-by: Johannes Thumshirn <johannes.thumshirn at wdc.com>
> ---
> drivers/md/Makefile | 4 ++
> drivers/md/dm-table.c | 14 ++----
> drivers/md/dm-zone.c | 102 ++++++++++++++++++++++++++++++++++++++++++
> drivers/md/dm.c | 78 --------------------------------
> drivers/md/dm.h | 11 +++++
> 5 files changed, 120 insertions(+), 89 deletions(-)
> create mode 100644 drivers/md/dm-zone.c
> 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