Skip to contentSkip to conversation

mm-make-zap_pte_range-handle-full-within-pmd-range.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jan 14, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: make zap_pte_range() handle full within-PMD range
has been removed from the -mm tree. Its filename was
mm-make-zap_pte_range-handle-full-within-pmd-range.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: Qi Zheng <[email protected]>
Subject: mm: make zap_pte_range() handle full within-PMD range
Date: Wed, 4 Dec 2024 19:09:48 +0800

In preparation for reclaiming empty PTE pages, this commit first makes zap_pte_range() to handle the full within-PMD range, so that we can more easily detect and free PTE pages in this function in subsequent commits.

Cc Andy Lutomirski <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Dave Hansen <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc David Rientjes <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Lorenzo Stoakes <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Muchun Song <[email protected]>
Cc Peter Xu <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Will Deacon <[email protected]>
Cc Zach O'Keefe <[email protected]>
Cc Dan Carpenter <[email protected]>

---

 mm/memory.c |    8 ++++++++
 1 file changed, 8 insertions(+)
mm/memory.c renamed from mm/memory.c~mm-make-zap_pte_range-handle-full-within-pmd-range +8 -0
@@ -1718,6 +1718,7 @@ static unsigned long zap_pte_range(struc
 	pte_t *pte;
 	int nr;
 
+retry:
 	tlb_change_page_size(tlb, PAGE_SIZE);
 	init_rss_vec(rss);
 	start_pte = pte = pte_offset_map_lock(mm, pmd, addr, &ptl);
@@ -1757,6 +1758,13 @@ static unsigned long zap_pte_range(struc
 	if (force_flush)
 		tlb_flush_mmu(tlb);
 
+	if (addr != end) {
+		cond_resched();
+		force_flush = false;
+		force_break = false;
+		goto retry;
+	}
+
 	return addr;
 }
 

_

Patches currently in -mm which might be from [email protected] are