Skip to content
Commit 1c2ad9fa authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

NVMe: Simplify nvme_unmap_user_pages



By using the iod->nents field (the same way other I/O paths do), we can
avoid recalculating the number of sg entries at unmap time, and make
nvme_unmap_user_pages() easier to call.

Also, use the 'write' parameter instead of assuming DMA_FROM_DEVICE.

Signed-off-by: default avatarMatthew Wilcox <matthew.r.wilcox@intel.com>
parent fe304c43
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment