nvmf: replace off_t with uint64_t
The offset variable is used to store the result of a uint64_t * uint32_t multiplication; a signed integer is not the correct type for the result. Change-Id: If1fb22314ba7e3cec91808cc051678f809c9e58b Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
a87d8a45a2
commit
bcd1edeae4
@ -387,7 +387,7 @@ nvmf_virtual_ctrlr_rw_cmd(struct spdk_bdev *bdev, struct spdk_io_channel *ch,
|
|||||||
uint64_t lba_address;
|
uint64_t lba_address;
|
||||||
uint64_t blockcnt;
|
uint64_t blockcnt;
|
||||||
uint64_t io_bytes;
|
uint64_t io_bytes;
|
||||||
off_t offset;
|
uint64_t offset;
|
||||||
uint64_t llen;
|
uint64_t llen;
|
||||||
struct spdk_nvme_cmd *cmd = &req->cmd->nvme_cmd;
|
struct spdk_nvme_cmd *cmd = &req->cmd->nvme_cmd;
|
||||||
struct spdk_nvme_cpl *response = &req->rsp->nvme_cpl;
|
struct spdk_nvme_cpl *response = &req->rsp->nvme_cpl;
|
||||||
|
Loading…
Reference in New Issue
Block a user