NVMe: Change NVME_IOCTL_GET_RANGE_TYPE to return all the ranges
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Wed, 26 Jan 2011 19:34:32 +0000 (14:34 -0500)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Fri, 4 Nov 2011 19:52:52 +0000 (15:52 -0400)
commitbd38c5557cf482fc195e2264b32ea62eed60730a
tree94204652ead86752f5545e4f0bf9befd25c83351
parentb8deb62cf271fa9381edc8cf52bcae2f0225c55a
NVMe: Change NVME_IOCTL_GET_RANGE_TYPE to return all the ranges

Factor out most of nvme_identify() into a new nvme_submit_user_admin_command()
function.  Change nvme_get_range_type() to call it and change nvme_ioctl to
realise that it's getting back all 64 ranges.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme.c