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>
Tue, 20 May 2025 03:34:27 +0000 (05:34 +0200)
commit1755b32516bb42123b0030080226d6079999621d
treed5ac128d61cd3f44b3e3895483a1be731e8c9f72
parent906573c3bfe382d326952c1a72ee9a06448c1db1
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>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
drivers/nvme/host/pci.c