NVME Namespace ID is 32-bits, so widen interface to reflect that.
Sponsored by: Netflix
This commit is contained in:
parent
223a9b93ac
commit
696c950297
@ -460,7 +460,7 @@ static int
|
||||
nvme_ctrlr_construct_namespaces(struct nvme_controller *ctrlr)
|
||||
{
|
||||
struct nvme_namespace *ns;
|
||||
int i;
|
||||
uint32_t i;
|
||||
|
||||
for (i = 0; i < min(ctrlr->cdata.nn, NVME_MAX_NAMESPACES); i++) {
|
||||
ns = &ctrlr->ns[i];
|
||||
|
@ -52,7 +52,7 @@ nvme_ctrlr_cmd_identify_controller(struct nvme_controller *ctrlr, void *payload,
|
||||
}
|
||||
|
||||
void
|
||||
nvme_ctrlr_cmd_identify_namespace(struct nvme_controller *ctrlr, uint16_t nsid,
|
||||
nvme_ctrlr_cmd_identify_namespace(struct nvme_controller *ctrlr, uint32_t nsid,
|
||||
void *payload, nvme_cb_fn_t cb_fn, void *cb_arg)
|
||||
{
|
||||
struct nvme_request *req;
|
||||
|
@ -476,7 +476,7 @@ nvme_ns_bio_process(struct nvme_namespace *ns, struct bio *bp,
|
||||
}
|
||||
|
||||
int
|
||||
nvme_ns_construct(struct nvme_namespace *ns, uint16_t id,
|
||||
nvme_ns_construct(struct nvme_namespace *ns, uint32_t id,
|
||||
struct nvme_controller *ctrlr)
|
||||
{
|
||||
struct nvme_completion_poll_status status;
|
||||
|
@ -225,8 +225,8 @@ struct nvme_namespace {
|
||||
|
||||
struct nvme_controller *ctrlr;
|
||||
struct nvme_namespace_data data;
|
||||
uint16_t id;
|
||||
uint16_t flags;
|
||||
uint32_t id;
|
||||
uint32_t flags;
|
||||
struct cdev *cdev;
|
||||
void *cons_cookie[NVME_MAX_CONSUMERS];
|
||||
uint32_t stripesize;
|
||||
@ -356,7 +356,7 @@ void nvme_ctrlr_cmd_identify_controller(struct nvme_controller *ctrlr,
|
||||
void *payload,
|
||||
nvme_cb_fn_t cb_fn, void *cb_arg);
|
||||
void nvme_ctrlr_cmd_identify_namespace(struct nvme_controller *ctrlr,
|
||||
uint16_t nsid, void *payload,
|
||||
uint32_t nsid, void *payload,
|
||||
nvme_cb_fn_t cb_fn, void *cb_arg);
|
||||
void nvme_ctrlr_cmd_set_interrupt_coalescing(struct nvme_controller *ctrlr,
|
||||
uint32_t microseconds,
|
||||
@ -438,7 +438,7 @@ void nvme_io_qpair_enable(struct nvme_qpair *qpair);
|
||||
void nvme_io_qpair_disable(struct nvme_qpair *qpair);
|
||||
void nvme_io_qpair_destroy(struct nvme_qpair *qpair);
|
||||
|
||||
int nvme_ns_construct(struct nvme_namespace *ns, uint16_t id,
|
||||
int nvme_ns_construct(struct nvme_namespace *ns, uint32_t id,
|
||||
struct nvme_controller *ctrlr);
|
||||
void nvme_ns_destruct(struct nvme_namespace *ns);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user