]> 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>
Sun, 11 May 2025 03:32:35 +0000 (05:32 +0200)
commitdf04f7f8ab2f088173602c349c277bee602188c2
treed65d081ebaca7208c1b25a1ac0339ae4928d3683
parent1b31e01090b1f52ea2b84bc2374fdf9cb17f07ae
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