projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b67177e
)
kernel/dma: remove unnecessary unmap_kernel_range
author
Nicholas Piggin
<npiggin@gmail.com>
Fri, 30 Apr 2021 05:58:55 +0000
(22:58 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 30 Apr 2021 18:20:40 +0000
(11:20 -0700)
vunmap will remove ptes.
Link:
https://lkml.kernel.org/r/20210322021806.892164-3-npiggin@gmail.com
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Cédric Le Goater <clg@kaod.org>
Cc: Uladzislau Rezki <urezki@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/dma/remap.c
patch
|
blob
|
history
diff --git
a/kernel/dma/remap.c
b/kernel/dma/remap.c
index 905c3fa005f107031cdeb7648cb211ecb5e566f6..b4526668072e774cf83dcb5aeb7a0d1225b5eea9 100644
(file)
--- a/
kernel/dma/remap.c
+++ b/
kernel/dma/remap.c
@@
-66,6
+66,5
@@
void dma_common_free_remap(void *cpu_addr, size_t size)
return;
}
- unmap_kernel_range((unsigned long)cpu_addr, PAGE_ALIGN(size));
vunmap(cpu_addr);
}