]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mmap.c: remove the first mapping check
authorHuang Shijie <b32955@freescale.com>
Wed, 4 Jun 2014 23:07:33 +0000 (16:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:54:01 +0000 (16:54 -0700)
commitd5a120ac5c7ff3e5b5413b8162ac08b451a57956
treee4497bc71d3b43510beb12927e65adeb59391462
parent503f3a7f6e7c19539cbf225a4d160c1b538f2cc6
mm/mmap.c: remove the first mapping check

Remove the first mapping check for vma_link.  Move the mutex_lock into the
braces when vma->vm_file is true.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c