projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42f8fae
)
vmalloc: call flush_cache_vunmap() from unmap_kernel_range()
author
Tejun Heo
<tj@kernel.org>
Fri, 20 Feb 2009 07:29:07 +0000
(16:29 +0900)
committer
Tejun Heo
<tj@kernel.org>
Fri, 20 Feb 2009 07:29:07 +0000
(16:29 +0900)
Impact: proper vcache flush on unmap_kernel_range()
flush_cache_vunmap() should be called before pages are unmapped. Add
a call to it in unmap_kernel_range().
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/vmalloc.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/vmalloc.c
b/mm/vmalloc.c
index 75f49d312e8c1d47648f3e96b8a1eb6d14076405..c37924a2ee36dd6500d66783b455a466ae24c087 100644
(file)
--- a/
mm/vmalloc.c
+++ b/
mm/vmalloc.c
@@
-1012,6
+1012,8
@@
void __init vmalloc_init(void)
void unmap_kernel_range(unsigned long addr, unsigned long size)
{
unsigned long end = addr + size;
+
+ flush_cache_vunmap(addr, end);
vunmap_page_range(addr, end);
flush_tlb_kernel_range(addr, end);
}