diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-04-20 21:57:04 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-04-21 01:58:20 -0400 |
commit | bfce281c287a427d0841fadf5d59242757b4e620 (patch) | |
tree | abca9ebeef4c668021e85e4d54e6e779121e92cc /arch | |
parent | 9f3a4afb276e4d8b3be7f3e678d4dbd11470416f (diff) |
kill mm argument of vm_munmap()
it's always current->mm
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/kernel/perfmon.c | 2 | ||||
-rw-r--r-- | arch/sparc/kernel/sys_sparc_64.c | 2 | ||||
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c index 899c0fa5b498..f00ba025375d 100644 --- a/arch/ia64/kernel/perfmon.c +++ b/arch/ia64/kernel/perfmon.c | |||
@@ -1468,7 +1468,7 @@ pfm_remove_smpl_mapping(void *vaddr, unsigned long size) | |||
1468 | /* | 1468 | /* |
1469 | * does the actual unmapping | 1469 | * does the actual unmapping |
1470 | */ | 1470 | */ |
1471 | r = vm_munmap(current->mm, (unsigned long)vaddr, size); | 1471 | r = vm_munmap((unsigned long)vaddr, size); |
1472 | 1472 | ||
1473 | if (r !=0) { | 1473 | if (r !=0) { |
1474 | printk(KERN_ERR "perfmon: [%d] unable to unmap sampling buffer @%p size=%lu\n", task_pid_nr(task), vaddr, size); | 1474 | printk(KERN_ERR "perfmon: [%d] unable to unmap sampling buffer @%p size=%lu\n", task_pid_nr(task), vaddr, size); |
diff --git a/arch/sparc/kernel/sys_sparc_64.c b/arch/sparc/kernel/sys_sparc_64.c index 022e57aadf5d..3ee51f189a55 100644 --- a/arch/sparc/kernel/sys_sparc_64.c +++ b/arch/sparc/kernel/sys_sparc_64.c | |||
@@ -569,7 +569,7 @@ SYSCALL_DEFINE2(64_munmap, unsigned long, addr, size_t, len) | |||
569 | if (invalid_64bit_range(addr, len)) | 569 | if (invalid_64bit_range(addr, len)) |
570 | return -EINVAL; | 570 | return -EINVAL; |
571 | 571 | ||
572 | return vm_munmap(current->mm, addr, len); | 572 | return vm_munmap(addr, len); |
573 | } | 573 | } |
574 | 574 | ||
575 | extern unsigned long do_mremap(unsigned long addr, | 575 | extern unsigned long do_mremap(unsigned long addr, |
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 1457be305fb1..91a5e989abcf 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -6364,7 +6364,7 @@ void kvm_arch_commit_memory_region(struct kvm *kvm, | |||
6364 | if (!user_alloc && !old.user_alloc && old.rmap && !npages) { | 6364 | if (!user_alloc && !old.user_alloc && old.rmap && !npages) { |
6365 | int ret; | 6365 | int ret; |
6366 | 6366 | ||
6367 | ret = vm_munmap(current->mm, old.userspace_addr, | 6367 | ret = vm_munmap(old.userspace_addr, |
6368 | old.npages * PAGE_SIZE); | 6368 | old.npages * PAGE_SIZE); |
6369 | if (ret < 0) | 6369 | if (ret < 0) |
6370 | printk(KERN_WARNING | 6370 | printk(KERN_WARNING |