kill mm argument of vm_munmap()

it's always current->mm

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2012-04-20 21:57:04 -04:00
parent 9f3a4afb27
commit bfce281c28
8 changed files with 12 additions and 11 deletions

View File

@@ -1734,8 +1734,9 @@ erase_whole_vma:
}
EXPORT_SYMBOL(do_munmap);
int vm_munmap(struct mm_struct *mm, unsigned long addr, size_t len)
int vm_munmap(unsigned long addr, size_t len)
{
struct mm_struct *mm = current->mm;
int ret;
down_write(&mm->mmap_sem);
@@ -1747,7 +1748,7 @@ EXPORT_SYMBOL(vm_munmap);
SYSCALL_DEFINE2(munmap, unsigned long, addr, size_t, len)
{
return vm_munmap(current->mm, addr, len);
return vm_munmap(addr, len);
}
/*