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)
commit64ac4940d557df8caab602eaea679ec7eaf9a57f
treee4497bc71d3b43510beb12927e65adeb59391462
parent2329d3751b082b4fd354f334a88662d72abac52d
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