nvme: move the CSI sanity check into nvme_ns_report_zones
authorChristoph Hellwig <hch@lst.de>
Wed, 19 May 2021 07:11:54 +0000 (09:11 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 3 Jun 2021 07:29:25 +0000 (10:29 +0300)
commitd8ca66e82191a9a95926f7f129028bd362202d5d
tree7e699c810993c3fae235f119b27c5e316ed5febd
parent85b790a7ae0518dd745bbb97d532b83840d2db04
nvme: move the CSI sanity check into nvme_ns_report_zones

Move the CSI check into nvme_ns_report_zones to clean up the code
a little bit and prepare for further refactoring.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/zns.c