mm-ksm-refer-to-special-vmas-via-vm_special-in-ksm_compatible.patch removed from -mm tree
The quilt patch titled
Subject: mm: ksm: refer to special VMAs via VM_SPECIAL in ksm_compatible()
has been removed from the -mm tree. Its filename was
mm-ksm-refer-to-special-vmas-via-vm_special-in-ksm_compatible.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Lorenzo Stoakes <[email protected]>
Subject: mm: ksm: refer to special VMAs via VM_SPECIAL in ksm_compatible()
Date: Thu, 29 May 2025 18:15:46 +0100
There's no need to spell out all the special cases, also doing it this way makes it absolutely clear that we preclude unmergeable VMAs in general, and puts the other excluded flags in stark and clear contrast.
---
mm/ksm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
mm/ksm.c renamed from mm/ksm.c~mm-ksm-refer-to-special-vmas-via-vm_special-in-ksm_compatible +2 -3
@@ -679,9 +679,8 @@ static int break_ksm(struct vm_area_strustatic bool ksm_compatible (const struct file *file,vm_flags_t vm_flags) { -if (vm_flags & (VM_SHARED |VM_MAYSHARE |VM_PFNMAP | -VM_IO |VM_DONTEXPAND |VM_HUGETLB | -VM_MIXEDMAP |VM_DROPPABLE )) +if (vm_flags & (VM_SHARED |VM_MAYSHARE |VM_SPECIAL | +VM_HUGETLB |VM_DROPPABLE ))return false;/* just ignore the advice */ if (file_is_dax (file))
_
Patches currently in -mm which might be from [email protected] are
mm-madvise-remove-the-visitor-pattern-and-thread-anon_vma-state.patch mm-madvise-thread-mm_struct-through-madvise_behavior.patch mm-madvise-thread-vma-range-state-through-madvise_behavior.patch mm-madvise-thread-all-madvise-state-through-madv_behavior.patch mm-madvise-eliminate-very-confusing-manipulation-of-prev-vma.patch mm-madvise-eliminate-very-confusing-manipulation-of-prev-vma-fix.patch tools-testing-selftests-add-mremap-unfaulted-faulted-test-cases.patch mm-mremap-perform-some-simple-cleanups.patch mm-mremap-refactor-initial-parameter-sanity-checks.patch mm-mremap-put-vma-check-and-prep-logic-into-helper-function.patch mm-mremap-cleanup-post-processing-stage-of-mremap.patch mm-mremap-use-an-explicit-uffd-failure-path-for-mremap.patch mm-mremap-use-an-explicit-uffd-failure-path-for-mremap-fix.patch mm-mremap-check-remap-conditions-earlier.patch mm-mremap-move-remap_is_valid-into-check_prep_vma.patch mm-mremap-clean-up-mlock-populate-behaviour.patch mm-mremap-permit-mremap-move-of-multiple-vmas.patch tools-testing-selftests-extend-mremap_test-to-test-multi-vma-mremap.patch