]> git.baikalelectronics.ru Git - kernel.git/commit
dm zoned: store zone id within the zone structure and kill dmz_id()
authorHannes Reinecke <hare@suse.de>
Mon, 11 May 2020 08:24:18 +0000 (10:24 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 15 May 2020 14:29:36 +0000 (10:29 -0400)
commitb295c1da395592be36f62e77f8213ce98fc333d3
treecdcde6df6c797078a5e90ec211814f78c8c0b9c3
parente7df36a1c8b660cd14d837822135ac892f0411bb
dm zoned: store zone id within the zone structure and kill dmz_id()

Instead of calculating the zone index by the offset within the
zone array store the index within the structure itself. With that
the helper dmz_id() is pointless and can be replaced with accessing
the ->id value directly.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Bob Liu <bob.liu@oracle.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-zoned-metadata.c
drivers/md/dm-zoned-reclaim.c
drivers/md/dm-zoned-target.c
drivers/md/dm-zoned.h