]> www.infradead.org Git - users/hch/misc.git/commit
nvme-pci: remove struct nvme_descriptor
authorChristoph Hellwig <hch@lst.de>
Sat, 10 May 2025 03:49:41 +0000 (05:49 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 12 May 2025 15:19:48 +0000 (17:19 +0200)
commit15779c4474dbb1ed12206c7f07e6e284bf2a47a7
tree738450bc9da6fdc1a9b69e568a99d8013f438377
parent5ba1ff4c38497ce4415fc4fc9da3957b597b8933
nvme-pci: remove struct nvme_descriptor

There is no real point in having a union of two pointer types here, just
use a void pointer as we mix and match types between the arms of the
union between the allocation and freeing side already.

Also rename the nr_allocations field to nr_descriptors to better describe
what it does.

Signed-off-by: Christoph Hellwig <hch@lst.de>
[leon: ported forward to include metadata SGL support]
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Tested-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c