LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 3/5] UML - Only flush areas covered by VMA
@ 2007-04-26 19:56 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2007-04-26 19:56 UTC (permalink / raw)
  To: Andrew Morton; +Cc: LKML, uml-devel

When doing a full address space flush, only look at areas covered by a VMA.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
--
 arch/um/kernel/skas/tlb.c |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

Index: linux-2.6.21-mm/arch/um/kernel/skas/tlb.c
===================================================================
--- linux-2.6.21-mm.orig/arch/um/kernel/skas/tlb.c	2007-04-17 12:20:05.000000000 -0400
+++ linux-2.6.21-mm/arch/um/kernel/skas/tlb.c	2007-04-17 12:55:38.000000000 -0400
@@ -89,8 +89,13 @@ void flush_tlb_mm_skas(struct mm_struct 
 
 void force_flush_all_skas(void)
 {
-	unsigned long end = proc_mm ? task_size : CONFIG_STUB_START;
-        fix_range(current->mm, 0, end, 1);
+	struct mm_struct *mm = current->mm;
+	struct vm_area_struct *vma = mm->mmap;
+
+	while(vma != NULL) {
+		fix_range(mm, vma->vm_start, vma->vm_end, 1);
+		vma = vma->vm_next;
+	}
 }
 
 void flush_tlb_page_skas(struct vm_area_struct *vma, unsigned long address)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-26 20:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-26 19:56 [PATCH 3/5] UML - Only flush areas covered by VMA Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).