From: Matthew Wilcox Date: Fri, 6 Jan 2012 20:52:56 +0000 (-0700) Subject: NVMe: Simplify nvme_unmap_user_pages X-Git-Tag: v3.3-rc1~16^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c2ad9faaf662b4a525348775deca3ac8e6c35a0;p=pandora-kernel.git 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 --- Reading git-diff-tree failed