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>
This commit is contained in:
parent
8e125cd855
commit
51a07e50b2
1 changed files with 1 additions and 1 deletions
|
@ -3941,7 +3941,7 @@ void print_vma_addr(char *prefix, unsigned long ip)
|
||||||
free_page((unsigned long)buf);
|
free_page((unsigned long)buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
up_read(¤t->mm->mmap_sem);
|
up_read(&mm->mmap_sem);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PROVE_LOCKING
|
#ifdef CONFIG_PROVE_LOCKING
|
||||||
|
|
Loading…
Reference in a new issue