aboutsummaryrefslogtreecommitdiffstats
path: root/mm/nommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/nommu.c')
-rw-r--r--mm/nommu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mm/nommu.c b/mm/nommu.c
index 215c62296028..fe9f4fa4a7a7 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -1205,7 +1205,8 @@ unsigned long do_mmap(struct file *file,
1205 unsigned long flags, 1205 unsigned long flags,
1206 vm_flags_t vm_flags, 1206 vm_flags_t vm_flags,
1207 unsigned long pgoff, 1207 unsigned long pgoff,
1208 unsigned long *populate) 1208 unsigned long *populate,
1209 struct list_head *uf)
1209{ 1210{
1210 struct vm_area_struct *vma; 1211 struct vm_area_struct *vma;
1211 struct vm_region *region; 1212 struct vm_region *region;
@@ -1577,7 +1578,7 @@ static int shrink_vma(struct mm_struct *mm,
1577 * - under NOMMU conditions the chunk to be unmapped must be backed by a single 1578 * - under NOMMU conditions the chunk to be unmapped must be backed by a single
1578 * VMA, though it need not cover the whole VMA 1579 * VMA, though it need not cover the whole VMA
1579 */ 1580 */
1580int do_munmap(struct mm_struct *mm, unsigned long start, size_t len) 1581int do_munmap(struct mm_struct *mm, unsigned long start, size_t len, struct list_head *uf)
1581{ 1582{
1582 struct vm_area_struct *vma; 1583 struct vm_area_struct *vma;
1583 unsigned long end; 1584 unsigned long end;
@@ -1643,7 +1644,7 @@ int vm_munmap(unsigned long addr, size_t len)
1643 int ret; 1644 int ret;
1644 1645
1645 down_write(&mm->mmap_sem); 1646 down_write(&mm->mmap_sem);
1646 ret = do_munmap(mm, addr, len); 1647 ret = do_munmap(mm, addr, len, NULL);
1647 up_write(&mm->mmap_sem); 1648 up_write(&mm->mmap_sem);
1648 return ret; 1649 return ret;
1649} 1650}