diff mbox series

parisc: In flush_cache_page, always flush tlb if pfn is valid

Message ID YkRq1YhoRloLL9dz@mx3210.localdomain (mailing list archive)
State Superseded
Headers show
Series parisc: In flush_cache_page, always flush tlb if pfn is valid | expand

Commit Message

John David Anglin March 30, 2022, 2:36 p.m. UTC
The purpose of this change is to inhibit move-in whenever we flush
or purge.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
---
diff mbox series

Patch

diff --git a/arch/parisc/kernel/cache.c b/arch/parisc/kernel/cache.c
index 23348199f3f8..91d218953b5c 100644
--- a/arch/parisc/kernel/cache.c
+++ b/arch/parisc/kernel/cache.c
@@ -611,8 +611,8 @@  void
 flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr, unsigned long pfn)
 {
 	if (pfn_valid(pfn)) {
+		flush_tlb_page(vma, vmaddr);
 		if (likely(vma->vm_mm->context.space_id)) {
-			flush_tlb_page(vma, vmaddr);
 			__flush_cache_page(vma, vmaddr, PFN_PHYS(pfn));
 		} else {
 			__purge_cache_page(vma, vmaddr, PFN_PHYS(pfn));