diff options
| author | Andrea Arcangeli <aarcange@redhat.com> | 2015-11-05 18:49:16 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:57:18 +0200 |
| commit | bc24f35d7b9bb2fbe59f39731caf594c0b2660e6 (patch) | |
| tree | 02c62942530c88258510e75a9be5ad83321a0295 /include/uapi/linux/kdev_t.h | |
| parent | 23d9b276af6a41199b01e743759e014844e509d9 (diff) | |
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 'include/uapi/linux/kdev_t.h')
0 files changed, 0 insertions, 0 deletions
