mm-madvise-add-madv_collapse-to-process_madvise.patch removed from -mm tree
The quilt patch titled
Subject: mm/madvise: add MADV_COLLAPSE to process_madvise()
has been removed from the -mm tree. Its filename was
mm-madvise-add-madv_collapse-to-process_madvise.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: "Zach O'Keefe" <[email protected]>
Subject: mm/madvise: add MADV_COLLAPSE to process_madvise()
Date: Wed, 6 Jul 2022 16:59:30 -0700
Allow MADV_COLLAPSE behavior for process_madvise(2) if caller has CAP_SYS_ADMIN or is requesting collapse of it's own memory.
This is useful for the development of userspace agents that seek to optimize THP utilization system-wide by using userspace signals to prioritize what memory is most deserving of being THP-backed.
---
mm/madvise.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mm/madvise.c renamed from mm/madvise.c~mm-madvise-add-madv_collapse-to-process_madvise +2 -2
@@ -1170,13 +1170,13 @@ madvise_behavior_valid(int behavior) } } -static bool -process_madvise_behavior_valid (int behavior) +static bool process_madvise_behavior_valid (int behavior) {switch (behavior) {case MADV_COLD :case MADV_PAGEOUT :case MADV_WILLNEED : +case MADV_COLLAPSE :return true;default :return false;
_
Patches currently in -mm which might be from [email protected] are
mm-shmem-add-flag-to-enforce-shmem-thp-in-hugepage_vma_check.patch mm-khugepaged-attempt-to-map-file-shmem-backed-pte-mapped-thps-by-pmds.patch mm-madvise-add-file-and-shmem-support-to-madv_collapse.patch mm-khugepaged-add-tracepoint-to-hpage_collapse_scan_file.patch selftests-vm-dedup-thp-helpers.patch selftests-vm-modularize-thp-collapse-memory-operations.patch selftests-vm-add-thp-collapse-file-and-tmpfs-testing.patch selftests-vm-add-thp-collapse-shmem-testing.patch selftests-vm-add-file-shmem-madv_collapse-selftest-for-cleared-pmd.patch selftests-vm-add-selftest-for-madv_collapse-of-uffd-minor-memory.patch