nvme-pci: move iod dma_len fill gaps
authorKeith Busch <kbusch@kernel.org>
Wed, 7 Sep 2022 06:42:07 +0000 (08:42 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 Sep 2022 15:55:25 +0000 (17:55 +0200)
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>
drivers/nvme/host/pci.c

index a553062..70b1922 100644 (file)
@@ -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;
 };