From: Liam R. Howlett Date: Tue, 24 Nov 2020 19:51:29 +0000 (-0500) Subject: mmap: Update mmap_region() to use do_mas_munmap() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e093512fc41882a7fa0da2cccb0b54db3cef80ce;p=users%2Fjedix%2Flinux-maple.git mmap: Update mmap_region() to use do_mas_munmap() Use the maple state to avoid multiple walks of the tree Signed-off-by: Liam R. Howlett --- diff --git a/mm/mmap.c b/mm/mmap.c index dd1eb5bcc13d..2579636f4cf4 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2604,7 +2604,7 @@ unsigned long mmap_region(struct file *file, unsigned long addr, } /* Unmap any existing mapping in the area */ - if (do_munmap(mm, addr, len, uf)) + if (do_mas_munmap(&mas, mm, addr, len, uf, false)) return -ENOMEM; /*