nvme: refactor ns info setup function
authorDaniel Wagner <dwagner@suse.de>
Mon, 18 Dec 2023 16:59:51 +0000 (17:59 +0100)
committerKeith Busch <kbusch@kernel.org>
Tue, 19 Dec 2023 17:10:01 +0000 (09:10 -0800)
commitd386aedc94efe249b0071b0ad969a6bce2e505bd
tree3242795096d519072c216b583ae6262f756d08ed
parent0372dd4e36171708f90192d5d4a3dcab7159df09
nvme: refactor ns info setup function

Use nvme_ns_head instead of nvme_ns where possible. This reduces the
coupling between the different data structures.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c
drivers/nvme/host/zns.c