aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorKeith Busch <kbusch@kernel.org>2022-09-07 08:42:07 +0200
committerChristoph Hellwig <hch@lst.de>2022-09-19 17:55:25 +0200
commitc4c22c52081385f026b430f35776f80073a22076 (patch)
tree087c440cfdebce225cc33bac23359b519576c78b /drivers/nvme
parentnvme-pci: iod npages fits in s8 (diff)
downloadlinux-dev-c4c22c52081385f026b430f35776f80073a22076.tar.xz
linux-dev-c4c22c52081385f026b430f35776f80073a22076.zip
nvme-pci: move iod dma_len fill gaps
The 32-bit field, dma_len, packs better in the iod struct above the dma_addr_t on 64-bit systems. Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index a553062ff3ba..70b1922c8953 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -230,8 +230,8 @@ struct nvme_iod {
bool aborted;
s8 nr_allocations; /* PRP list pool allocations. 0 means small
pool in use */
- dma_addr_t first_dma;
unsigned int dma_len; /* length of single DMA segment mapping */
+ dma_addr_t first_dma;
dma_addr_t meta_dma;
struct sg_table sgt;
};