Message ID | 20220331042137.6F5B6C340F0@smtp.kernel.org |
---|---|
State | New |
Headers | show |
Series | + mm-avoid-pointless-invalidate_range_start-end-on-mremapold_size=0.patch added to -mm tree | expand |
--- a/mm/mremap.c~mm-avoid-pointless-invalidate_range_start-end-on-mremapold_size=0 +++ a/mm/mremap.c @@ -486,6 +486,9 @@ unsigned long move_page_tables(struct vm pmd_t *old_pmd, *new_pmd; pud_t *old_pud, *new_pud; + if (!len) + return 0; + old_end = old_addr + len; flush_cache_range(vma, old_addr, old_end);