nvme: remove nvme_revalidate_ns
authorChristoph Hellwig <hch@lst.de>
Wed, 16 Aug 2017 14:14:47 +0000 (16:14 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 29 Aug 2017 08:22:39 +0000 (10:22 +0200)
commitcdbff4f26bd9fab11bfac22097f836892a5c3612
treee61bbd488fba6eff4e55e3b26b1a8d3f45ed4e83
parent57eeaf8ec67d5c5dee0ee9bb5b19866b8eef780d
nvme: remove nvme_revalidate_ns

The function is used in two places, and the shared code for those will
diverge later in this series.

Instead factor out a new helper to get the ids for a namespace, simplify
the calling conventions for nvme_identify_ns and just open code the
sequence.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/core.c