From e093512fc41882a7fa0da2cccb0b54db3cef80ce Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Tue, 24 Nov 2020 14:51:29 -0500 Subject: [PATCH] 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 --- mm/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; /* -- 2.50.1