commit | 1c2ad9faaf662b4a525348775deca3ac8e6c35a0 | [log] [tgz] |
---|---|---|
author | Matthew Wilcox <matthew.r.wilcox@intel.com> | Fri Jan 06 13:52:56 2012 -0700 |
committer | Matthew Wilcox <matthew.r.wilcox@intel.com> | Tue Jan 10 14:54:22 2012 -0500 |
tree | 3b378e4edca145b682cd4952c105ff9e31b3d465 | |
parent | fe304c43c6d63e29ed4fc46a874d7a74313788c5 [diff] |
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: Matthew Wilcox <matthew.r.wilcox@intel.com>