nvme: refactor ns info helpers
authorDaniel Wagner <dwagner@suse.de>
Mon, 18 Dec 2023 16:59:50 +0000 (17:59 +0100)
committerKeith Busch <kbusch@kernel.org>
Tue, 19 Dec 2023 17:09:58 +0000 (09:09 -0800)
commit0372dd4e36171708f90192d5d4a3dcab7159df09
tree9498db19bfc0ee1ea7ae74549b01286e15ccdc27
parent9419e71b8d67312dbe267968b2bec0ebc449dc73
nvme: refactor ns info helpers

Pass in the nvme_ns_head pointer directly. This reduces the necessity on
the caller side have the nvme_ns data structure present. Thus we can
refactor the caller side in the next step as well.

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/nvme.h
drivers/nvme/host/rdma.c
drivers/nvme/host/zns.c