It's only true or false, so make this a bool to reflect that and save
some space in nvme_iod.
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
struct nvme_request req;
struct nvme_command cmd;
bool use_sgl;
- int aborted;
+ bool aborted;
int npages; /* In the PRP list. 0 means small pool in use */
dma_addr_t first_dma;
unsigned int dma_len; /* length of single DMA segment mapping */
struct nvme_iod *iod = blk_mq_rq_to_pdu(req);
blk_status_t ret;
- iod->aborted = 0;
+ iod->aborted = false;
iod->npages = -1;
iod->sgt.nents = 0;
atomic_inc(&dev->ctrl.abort_limit);
return BLK_EH_RESET_TIMER;
}
- iod->aborted = 1;
+ iod->aborted = true;
cmd.abort.opcode = nvme_admin_abort_cmd;
cmd.abort.cid = nvme_cid(req);