nvme: move common logic into nvme_update_ns_info
authorChristoph Hellwig <hch@lst.de>
Mon, 4 Mar 2024 14:04:54 +0000 (07:04 -0700)
committerKeith Busch <kbusch@kernel.org>
Mon, 4 Mar 2024 16:24:56 +0000 (08:24 -0800)
commit46e7422cda8482aa3074c9caf4c224cf2fb74d71
tree1849728e300f1d6f5624339c2d424c950095dd20
parentd60c23e4552b04fda600c6a8681dfe57b3ee2bd8
nvme: move common logic into nvme_update_ns_info

nvme_update_ns_info_generic and nvme_update_ns_info_block share a
fair amount of logic related to not fully supported namespace
formats and updating the multipath information.  Move this logic
into the common caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c