NVMe: Namespace IDs are unsigned

The 'Number of Namespaces' read from the device was being treated as
signed, which would cause us to not scan any namespaces for a device
with more than 2 billion namespaces.  That led to noticing that the
namespace ID was also being treated as signed, which could lead to the
result from NVME_IOCTL_ID being treated as an error code.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
This commit is contained in:
Matthew Wilcox
2013-07-08 17:26:25 -04:00
parent 685585c25e
commit c3bfe7176c
2 changed files with 6 additions and 3 deletions

View File

@@ -104,7 +104,7 @@ struct nvme_ns {
struct request_queue *queue;
struct gendisk *disk;
int ns_id;
unsigned ns_id;
int lba_shift;
int ms;
u64 mode_select_num_blocks;