]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet:: use bdev based helpers in nvmet_bdev_zone_mgmt_emulate_all
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Jul 2022 07:03:47 +0000 (09:03 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Jul 2022 12:46:26 +0000 (06:46 -0600)
commitfbfeb6c846a2244305808abae1e676e25b1c90af
treec0c0c92639f8fbddf4c712dcab84c952afba7a7e
parent7b61fddc7a2eaff1ef487cedc469086d3cd88221
nvmet:: use bdev based helpers in nvmet_bdev_zone_mgmt_emulate_all

Use the bdev based helpers instead of the queue based ones to clean up
the code a bit and prepare for storing all zone related fields in
struct gendisk.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Link: https://lore.kernel.org/r/20220706070350.1703384-14-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/zns.c