OSDN Git Service

dm zoned: use array for superblock zones
authorHannes Reinecke <hare@suse.de>
Mon, 11 May 2020 08:24:19 +0000 (10:24 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 15 May 2020 14:29:37 +0000 (10:29 -0400)
commit735bd7e4cd16270b7b67cb82ff4ba2811bfd8d7b
tree5b1537e8dcd8cf0705ccb65693ac555c03eb23f7
parentb71228739851a9b384a59ba0467259eba508b408
dm zoned: use array for superblock zones

Instead of storing just the first superblock zone and calculate
the secondary relative to that we should be using an array for
holding the superblock zones.

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