mm-update-resctl-to-use-mmap_prepare.patch removed from -mm tree
The quilt patch titled
Subject: mm: update resctl to use mmap_prepare
has been removed from the -mm tree. Its filename was
mm-update-resctl-to-use-mmap_prepare.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: update resctl to use mmap_prepare
Date: Mon, 20 Oct 2025 13:11:32 +0100
Make use of the ability to specify a remap action within mmap_prepare to update the resctl pseudo-lock to use mmap_prepare in favour of the deprecated mmap hook.
---
fs/resctrl/pseudo_lock.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-)
fs/resctrl/pseudo_lock.c renamed from fs/resctrl/pseudo_lock.c~mm-update-resctl-to-use-mmap_prepare +9 -11
@@ -995,10 +995,11 @@ static const struct vm_operations_struct .mremap = pseudo_lock_dev_mremap, }; -static int pseudo_lock_dev_mmap (struct file *filp,struct vm_area_struct *vma) +static int pseudo_lock_dev_mmap_prepare (struct vm_area_desc *desc) { -unsigned long vsize = vma->vm_end - vma->vm_start; -unsigned long off = vma->vm_pgoff <<PAGE_SHIFT ; +unsigned long off = desc->pgoff <<PAGE_SHIFT ; +unsigned long vsize =vma_desc_size (desc); +struct file *filp = desc->file;struct pseudo_lock_region *plr;struct rdtgroup *rdtgrp;unsigned long physical;
@@ -1043,7 +1044,7 @@ static int pseudo_lock_dev_mmap(struct f* Ensure changes are carried directly to the memory being mapped, * do not allow copy-on-write mapping. */ -if (!(vma->vm_flags &VM_SHARED )) { +if (!(desc->vm_flags &VM_SHARED )) {mutex_unlock (&rdtgroup_mutex);return -EINVAL ; }
@@ -1055,12 +1056,9 @@ static int pseudo_lock_dev_mmap(struct fmemset (plr->kmem + off,0 , vsize); -if (remap_pfn_range (vma, vma->vm_start, physical + vma->vm_pgoff, - vsize, vma->vm_page_prot)) { -mutex_unlock (&rdtgroup_mutex); -return -EAGAIN ; - } - vma->vm_ops = &pseudo_mmap_ops; + desc->vm_ops = &pseudo_mmap_ops; +mmap_action_remap_full (desc, physical + desc->pgoff); +mutex_unlock (&rdtgroup_mutex);return 0 ; }
@@ -1071,7 +1069,7 @@ static const struct file_operations pseu .write = NULL, .open = pseudo_lock_dev_open, .release = pseudo_lock_dev_release, - .mmap = pseudo_lock_dev_mmap, + .mmap_prepare = pseudo_lock_dev_mmap_prepare, };int rdt_pseudo_lock_init (void )
_
Patches currently in -mm which might be from [email protected] are
mm-introduce-vm_maybe_guard-and-make-visible-in-proc-pid-smaps.patch mm-add-atomic-vma-flags-and-set-vm_maybe_guard-as-such.patch mm-add-atomic-vma-flags-and-set-vm_maybe_guard-as-such-fix.patch mm-implement-sticky-vma-flags.patch mm-introduce-copy-on-fork-vmas-and-make-vm_maybe_guard-one.patch mm-set-the-vm_maybe_guard-flag-on-guard-region-install.patch mm-set-the-vm_maybe_guard-flag-on-guard-region-install-fix.patch tools-testing-vma-add-vma-sticky-userland-tests.patch tools-testing-selftests-mm-add-madv_collapse-test-case.patch tools-testing-selftests-mm-add-smaps-visibility-guard-region-test.patch mm-correctly-handle-uffd-pte-markers.patch mm-introduce-leaf-entry-type-and-use-to-simplify-leaf-entry-logic.patch mm-avoid-unnecessary-uses-of-is_swap_pte.patch mm-eliminate-is_swap_pte-when-softleaf_from_pte-suffices.patch mm-use-leaf-entries-in-debug-pgtable-remove-is_swap_pte.patch fs-proc-task_mmu-refactor-pagemap_pmd_range.patch mm-avoid-unnecessary-use-of-is_swap_pmd.patch mm-huge_memory-refactor-copy_huge_pmd-non-present-logic.patch mm-huge_memory-refactor-change_huge_pmd-non-present-logic.patch mm-replace-pmd_to_swp_entry-with-softleaf_from_pmd.patch mm-introduce-pmd_is_huge-and-use-where-appropriate.patch mm-remove-remaining-is_swap_pmd-users-and-is_swap_pmd.patch mm-remove-non_swap_entry-and-use-softleaf-helpers-instead.patch mm-remove-is_hugetlb_entry_.patch mm-eliminate-further-swapops-predicates.patch mm-replace-remaining-pte_to_swp_entry-with-softleaf_from_pte.patch mm-rename-walk_page_range_mm.patch mm-madvise-allow-guard-page-install-remove-under-vma-lock.patch mm-propagate-vm_softdirty-on-merge.patch testing-selftests-mm-add-soft-dirty-merge-self-test.patch mm-declare-vma-flags-by-bit.patch mm-declare-vma-flags-by-bit-fix.patch mm-declare-vma-flags-by-bit-fix-2.patch mm-simplify-and-rename-mm-flags-function-for-clarity.patch tools-testing-vma-eliminate-dependency-on-vma-__vm_flags.patch mm-introduce-vma-flags-bitmap-type.patch