aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorJeff Liu <jeff.liu@oracle.com>2012-07-31 19:43:18 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-07-31 21:42:43 -0400
commit51a07e50b230d14e1b8bef50d66655d003fa006c (patch)
tree20e79dbe3e7d86f23ff6d877a68eea0c00aabeee /mm/memory.c
parent8e125cd85517c9716695b0abfabc0a4a3fcb94f3 (diff)
mm/memory.c:print_vma_addr(): call up_read(&mm->mmap_sem) directly
Call up_read(&mm->mmap_sem) directly since we have already got mm via current->mm at the beginning of print_vma_addr(). Signed-off-by: Jie Liu <jeff.liu@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
-rw-r--r--mm/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c
index 59e5bebc2e35..ec72a616ccd4 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3941,7 +3941,7 @@ void print_vma_addr(char *prefix, unsigned long ip)
3941 free_page((unsigned long)buf); 3941 free_page((unsigned long)buf);
3942 } 3942 }
3943 } 3943 }
3944 up_read(&current->mm->mmap_sem); 3944 up_read(&mm->mmap_sem);
3945} 3945}
3946 3946
3947#ifdef CONFIG_PROVE_LOCKING 3947#ifdef CONFIG_PROVE_LOCKING