diff options
author | Andrea Arcangeli <aarcange@redhat.com> | 2015-11-05 18:49:16 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-05 19:34:48 -0800 |
commit | 85c6e8dd23c6aa9ff299bf5256fe5f0a6c44f100 (patch) | |
tree | 40353db4104bd1b5b1339a8e3dfc647509d9903c /lib/crc-t10dif.c | |
parent | 98666f8a2576b12f5f3ebcef61a8cdbefede1be3 (diff) | |
download | op-kernel-dev-85c6e8dd23c6aa9ff299bf5256fe5f0a6c44f100.zip op-kernel-dev-85c6e8dd23c6aa9ff299bf5256fe5f0a6c44f100.tar.gz |
ksm: use find_mergeable_vma in try_to_merge_with_ksm_page
Doing the VM_MERGEABLE check after the page == kpage check won't provide
any meaningful benefit. The !vma->anon_vma check of find_mergeable_vma is
the only superfluous bit in using find_mergeable_vma because the !PageAnon
check of try_to_merge_one_page() implicitly checks for that, but it still
looks cleaner to share the same find_mergeable_vma().
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Acked-by: Hugh Dickins <hughd@google.com>
Cc: Petr Holasek <pholasek@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/crc-t10dif.c')
0 files changed, 0 insertions, 0 deletions