]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mmap: Update mmap_region() to use do_mas_munmap()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 24 Nov 2020 19:51:29 +0000 (14:51 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:33:26 +0000 (12:33 -0500)
Use the maple state to avoid multiple walks of the tree

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
mm/mmap.c

index dd1eb5bcc13d7fba6e928e5521847c84e56156ed..2579636f4cf4746546c62df19911d42908c068e0 100644 (file)
--- 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;
 
        /*