nvme: simplify the API for getting log pages
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Jun 2018 12:39:00 +0000 (14:39 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 27 Jul 2018 17:12:01 +0000 (19:12 +0200)
commit0e98719b0e4b48b61965e1d1cba037c2005d01d7
treec413633790ddf1fa7961ef92967fa7c117b79e4d
parent1a37621658fe06b10cf8bac02c32304d2a1c888c
nvme: simplify the API for getting log pages

Merge nvme_get_log and nvme_get_log_ext into a single helper, which takes
a plain nsid instead of the nvme_ns pointer.  Also add support for the
log specific field while we're at it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
drivers/nvme/host/core.c
drivers/nvme/host/lightnvm.c
drivers/nvme/host/nvme.h