From: Jeff Liu Date: Tue, 31 Jul 2012 23:43:18 +0000 (-0700) Subject: mm/memory.c:print_vma_addr(): call up_read(&mm->mmap_sem) directly X-Git-Tag: v3.6-rc1~24^2~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51a07e50b230d14e1b8bef50d66655d003fa006c;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memory.c b/mm/memory.c index 59e5beb..ec72a61 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3941,7 +3941,7 @@ void print_vma_addr(char *prefix, unsigned long ip) free_page((unsigned long)buf); } } - up_read(¤t->mm->mmap_sem); + up_read(&mm->mmap_sem); } #ifdef CONFIG_PROVE_LOCKING