diff options
author | 2012-01-06 13:52:56 -0700 | |
---|---|---|
committer | 2012-01-10 14:54:22 -0500 | |
commit | 1c2ad9faaf662b4a525348775deca3ac8e6c35a0 (patch) | |
tree | 3b378e4edca145b682cd4952c105ff9e31b3d465 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | NVMe: Mark the end of the sg list (diff) | |
download | wireguard-linux-1c2ad9faaf662b4a525348775deca3ac8e6c35a0.tar.xz wireguard-linux-1c2ad9faaf662b4a525348775deca3ac8e6c35a0.zip |
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>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions