]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb8ee438eabb6d40b34d25fdaa02562ceeeda28f
tree5fc085e0b451ffd935f473c0b1929e2da0103e40
parent54ec368b53b3df1c5c82d8957ed769b257c0eec2
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