patch-1.3.83 linux/fs/proc/mem.c

Next file: linux/include/asm-alpha/hwrpb.h
Previous file: linux/fs/nfs/rpcsock.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.82/linux/fs/proc/mem.c linux/fs/proc/mem.c
@@ -267,6 +267,8 @@
 	stmp    = vma->vm_offset;
 	dtmp    = vma->vm_start;
 
+	flush_cache_range(vma->vm_mm, vma->vm_start, vma->vm_end);
+	flush_cache_range(src_vma->vm_mm, src_vma->vm_start, src_vma->vm_end);
 	while (dtmp < vma->vm_end) {
 		while (src_vma && stmp > src_vma->vm_end)
 			src_vma = src_vma->vm_next;
@@ -297,8 +299,8 @@
 		dtmp += PAGE_SIZE;
 	}
 
-	invalidate_range(vma->vm_mm, vma->vm_start, vma->vm_end);
-	invalidate_range(src_vma->vm_mm, src_vma->vm_start, src_vma->vm_end);
+	flush_tlb_range(vma->vm_mm, vma->vm_start, vma->vm_end);
+	flush_tlb_range(src_vma->vm_mm, src_vma->vm_start, src_vma->vm_end);
 	return 0;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this