]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3d7a4a588973441b6f2e5a4d8f978075c41e19e
treee26664dbfd6077129d75f555757d36b5fbec43c2
parentcc8e8bf95b2d933ad11e766e75d9df7ab2d7fc53
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