summaryrefslogtreecommitdiffstats
path: root/include/linux/nvme.h
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew.r.wilcox@intel.com>2013-07-08 17:26:25 -0400
committerMatthew Wilcox <matthew.r.wilcox@intel.com>2013-09-03 16:32:26 -0400
commitc3bfe7176c035a0a2c70bc79180fb13a6c57142a (patch)
treeaf979e07d60607e4d71faa3770b0ae3bd7005162 /include/linux/nvme.h
parent685585c25e8269cc355b59d1cd6fc65b8c5c4878 (diff)
downloadblackbird-op-linux-c3bfe7176c035a0a2c70bc79180fb13a6c57142a.tar.gz
blackbird-op-linux-c3bfe7176c035a0a2c70bc79180fb13a6c57142a.zip
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>
Diffstat (limited to 'include/linux/nvme.h')
-rw-r--r--include/linux/nvme.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 8d0041513e1a..3403c8f06fa0 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -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;
OpenPOWER on IntegriCloud