]> 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)
commit83313ea5839a5e06f46c8bab3195f7e5c6f4c774
tree3fb9889d17013ffab71a722c923b28a074b5354c
parent1fc26460afc3909ec033813bf2b3ff23ecf23cda
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