The comment asks the caller to call flush_cache_vmap() before calling
this function. flush_cache_vunmap() is meant here, the old comment that
commit 4ad0ae8c64ac ("mm/vmalloc: remove unmap_kernel_range") replaced
said flush_cache_vunmap(), and Documentation/core-api/cachetlb.rst and
vunmap_range() both use flush_cache_vunmap() before the page tables are
torn down.
Fixes: 4ad0ae8c64ac ("mm/vmalloc: remove unmap_kernel_range")
Cc: [email protected]
Signed-off-by: Hao Ge <[email protected]>
---
mm/vmalloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 1fe81a7e617b..1580b2c72727 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -506,7 +506,7 @@ static void vunmap_p4d_range(pgd_t *pgd, unsigned long
addr, unsigned long end,
* vunmap_range_noflush is similar to vunmap_range, but does not
* flush caches or TLBs.
*
- * The caller is responsible for calling flush_cache_vmap() before calling
+ * The caller is responsible for calling flush_cache_vunmap() before calling
* this function, and flush_tlb_kernel_range after it has returned
* successfully (and before the addresses are expected to cause a page fault
* or be re-mapped for something else, if TLB flushes are being delayed or
--
2.25.1