]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: add helper nvme_map_len()
authorMing Lin <ming.l@ssi.samsung.com>
Tue, 22 Mar 2016 07:24:43 +0000 (00:24 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:41:12 +0000 (13:41 -0700)
commitc234705f1fa6e9043acd5100bb7ce36c6189b62c
treeca27515c07525f35730499644b912b2475eb2cf1
parenta7fb4f778f4acbebad4715e5287880fcadb3bd05
nvme: add helper nvme_map_len()

The helper returns the number of bytes that need to be mapped
using PRPs/SGL entries.

Signed-off-by: Ming Lin <ming.l@ssi.samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 58b45602751ddf16e57170656670aa5a8f78eeca)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c