]> 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)
commit9320ab4423e9695f6ac10d9f0543bb253a2ca291
tree5fc085e0b451ffd935f473c0b1929e2da0103e40
parentafbd9f961bde95a5ceef7675186ca06e3482f016
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