Skip to content

Commit

Permalink
nvmet: use u32 for nvmet_subsys max_nsid
Browse files Browse the repository at this point in the history
Use u32 type for the nsid_max member of the nvmet_subsys structure.
This avoids the type confusion when updating the subsys->nax_nsid from
ns->nsid. This also matches the nvmet_ns->nsid member.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
  • Loading branch information
ChaitanayaKulkarni authored and Christoph Hellwig committed Jun 17, 2021
1 parent f3dce2a commit 86693c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvme/target/nvmet.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ struct nvmet_subsys {

struct xarray namespaces;
unsigned int nr_namespaces;
unsigned int max_nsid;
u32 max_nsid;
u16 cntlid_min;
u16 cntlid_max;

Expand Down

0 comments on commit 86693c4

Please sign in to comment.