nvmet: use u32 for nvmet_subsys max_nsid
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Mon, 14 Jun 2021 01:58:48 +0000 (18:58 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jun 2021 13:51:20 +0000 (15:51 +0200)
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>
drivers/nvme/target/nvmet.h

index bd0a0b91d8431d8aa62681d169fc2833bbf3ea0a..3468f25cb4b7a3f290059648aec8296ec409cd59 100644 (file)
@@ -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;