OSDN Git Service

dm zoned: allocate temporary superblock for tertiary devices
authorHannes Reinecke <hare@suse.de>
Tue, 2 Jun 2020 11:09:47 +0000 (13:09 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 5 Jun 2020 18:59:47 +0000 (14:59 -0400)
commit5d2c74f3ddc010b5812e556715f7605201eff101
tree5fc085e0b451ffd935f473c0b1929e2da0103e40
parenta92fbc446d1a93950b7e25bec6ad75dd26f01ba8
dm zoned: allocate temporary superblock for tertiary devices

Checking the tertiary superblock just consists of validating UUIDs,
crcs, and the generation number; it doesn't have contents which would
be required during the actual operation.

So allocate a temporary superblock when checking tertiary devices to
avoid having to store it together with the 'real' superblocks.

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