mm/memory.c: print_vma_addr() call up_read(&mm->mmap_sem) directly
Subsystems (2)
PATCH 1/1 mm/memory.c: print_vma_addr() call up_read(&mm->mmap_sem) directly
Hello,
We can call up_read(&mm->mmap_sem) directly since we have already got mm via current->mm at the beginning of print_vma_addr().
Thanks,
-Jeff
Signed-off-by Jie Liu <[email protected]>
--- mm/memory.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
mm/memory.c +1 -1
@@ -3929,7 +3929,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
Signature · 7 lines
1.7.9 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>