[PATCH 3/5] nvme-pci: iod npages fits in s8

Christoph Hellwig hch at lst.de
Fri Jul 29 06:19:14 PDT 2022


On Thu, Jul 28, 2022 at 03:11:49PM -0700, Keith Busch wrote:
> From: Keith Busch <kbusch at kernel.org>
> 
> The largest allowed transfer is 4MB, which can use at most 1025 PRPs.
> Each PRP is 8 bytes, so the maximum number of 4k nvme pages needed for
> the iod_list is 3, which fits in an 's8'.

Can we use the chance to rename the field to nr_allocations or
so?  The nr_pages always confused me, and the comment does not exactly
help.




More information about the Linux-nvme mailing list