ksm: cleanup: introduce find_mergeable_vma()
authorBob Liu <lliubbo@gmail.com>
Wed, 21 Mar 2012 23:34:11 +0000 (16:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 22 Mar 2012 00:54:59 +0000 (17:54 -0700)
commitef6942224a185c9e434f6cfe69fe434e732f5b38
treee26664dbfd6077129d75f555757d36b5fbec43c2
parentcc9a6c8776615f9c194ccf0b63a0aa5628235545
ksm: cleanup: introduce find_mergeable_vma()

There are multiple places which perform the same check.  Add a new
find_mergeable_vma() to handle this.

Signed-off-by: Bob Liu <lliubbo@gmail.com>
Acked-by: Hugh Dickins <hughd@google.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/ksm.c