* [merged mm-stable] mm-use-update_mmu_tlb_range-to-simplify-code.patch removed from -mm tree
@ 2024-06-25 4:59 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2024-06-25 4:59 UTC (permalink / raw)
To: mm-commits, tsbogend, ryan.roberts, paul.walmsley, palmer,
jcmvbkbc, ioworker0, david, chris, chenhuacai, libang.li, akpm
The quilt patch titled
Subject: mm: use update_mmu_tlb_range() to simplify code
has been removed from the -mm tree. Its filename was
mm-use-update_mmu_tlb_range-to-simplify-code.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: "Bang Li" <libang.li@antgroup.com>
Subject: mm: use update_mmu_tlb_range() to simplify code
Date: Wed, 22 May 2024 14:12:04 +0800
Let us simplify the code by update_mmu_tlb_range().
Link: https://lkml.kernel.org/r/20240522061204.117421-4-libang.li@antgroup.com
Signed-off-by: Bang Li <libang.li@antgroup.com>
Reviewed-by: Lance Yang <ioworker0@gmail.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Chris Zankel <chris@zankel.net>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Paul Walmsley <paul.walmsley@sifive.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/memory.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
--- a/mm/memory.c~mm-use-update_mmu_tlb_range-to-simplify-code
+++ a/mm/memory.c
@@ -4457,7 +4457,6 @@ static vm_fault_t do_anonymous_page(stru
vm_fault_t ret = 0;
int nr_pages = 1;
pte_t entry;
- int i;
/* File mapping without ->vm_ops ? */
if (vma->vm_flags & VM_SHARED)
@@ -4527,8 +4526,7 @@ static vm_fault_t do_anonymous_page(stru
update_mmu_tlb(vma, addr, vmf->pte);
goto release;
} else if (nr_pages > 1 && !pte_range_none(vmf->pte, nr_pages)) {
- for (i = 0; i < nr_pages; i++)
- update_mmu_tlb(vma, addr + PAGE_SIZE * i, vmf->pte + i);
+ update_mmu_tlb_range(vma, addr, vmf->pte, nr_pages);
goto release;
}
_
Patches currently in -mm which might be from libang.li@antgroup.com are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-25 4:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-25 4:59 [merged mm-stable] mm-use-update_mmu_tlb_range-to-simplify-code.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.