Just add atomic parameter to keep consistent with the API change and pass "true" to the call site. Nommu code doesn't do the mmap_sem unlock/relock. Signed-off-by: Yang Shi <yang.shi@xxxxxxxxxxxxxxxxx> --- mm/nommu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mm/nommu.c b/mm/nommu.c index ebb6e61..5954c08 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -1578,7 +1578,8 @@ static int shrink_vma(struct mm_struct *mm, * - under NOMMU conditions the chunk to be unmapped must be backed by a single * VMA, though it need not cover the whole VMA */ -int do_munmap(struct mm_struct *mm, unsigned long start, size_t len, struct list_head *uf) +int do_munmap(struct mm_struct *mm, unsigned long start, size_t len, + struct list_head *ufi, bool atomic) { struct vm_area_struct *vma; unsigned long end; @@ -1644,7 +1645,7 @@ int vm_munmap(unsigned long addr, size_t len) int ret; down_write(&mm->mmap_sem); - ret = do_munmap(mm, addr, len, NULL); + ret = do_munmap(mm, addr, len, NULL, true); up_write(&mm->mmap_sem); return ret; } -- 1.8.3.1