mm-mremap-thread-state-through-move-page-table-operation.patch removed from -mm tree
The quilt patch titled
Subject: mm/mremap: thread state through move page table operation
has been removed from the -mm tree. Its filename was
mm-mremap-thread-state-through-move-page-table-operation.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/mremap: thread state through move page table operation
Date: Mon, 10 Mar 2025 20:50:40 +0000
Finish refactoring the page table logic by threading the PMC state throughout the operation, allowing us to control the operation as we go.
Additionally, update the old_addr, new_addr fields in move_page_tables() as we progress through the process making use of the fact we have this state object now to track this.
With these changes made, not only is the code far more readable, but we can finally transmit state throughout the entire operation, which lays the groundwork for sensibly making changes in future to how the mremap() operation is performed.
Additionally take the opportunity to refactor the means of determining the progress of the operation, abstracting this to pmc_progress() and simplifying the logic to make it clearer what's going on.
---
mm/internal.h | 3 mm/mremap.c | 198 +++++++++++++++++++++++++++--------------------- 2 files changed, 117 insertions(+), 84 deletions(-)
mm/internal.h renamed from mm/internal.h~mm-mremap-thread-state-through-move-page-table-operation +3 -0
@@ -36,6 +36,9 @@ struct folio_batch;* * Use the PAGETABLE_MOVE() macro to initialise this struct. * +* The old_addr and new_addr fields are updated as the page table move is +* executed. +* * NOTE: The page table move is affected by reading from [old_addr, old_end), * and old_addr may be updated for better page table alignment, so len_in * represents the length of the range being copied as specified by the user.
mm/mremap.c renamed from mm/mremap.c~mm-mremap-thread-state-through-move-page-table-operation +114 -84
427 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are