]> git.baikalelectronics.ru Git - kernel.git/commit
dm zoned: add a 'reserved' zone flag
authorHannes Reinecke <hare@suse.de>
Tue, 2 Jun 2020 11:09:45 +0000 (13:09 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 5 Jun 2020 18:59:46 +0000 (14:59 -0400)
commit832ceb2b9e7582aa8321b53d683478a9e0c64640
tree3fb9889d17013ffab71a722c923b28a074b5354c
parent34d93e7933ba7ac9b258b52c484b19185819db81
dm zoned: add a 'reserved' zone flag

Instead of counting the number of reserved zones in dmz_free_zone(),
mark the zone as 'reserved' during allocation and simplify
dmz_free_zone().

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
drivers/md/dm-zoned.h