Skip to content

Commit

Permalink
uml: only flush areas covered by VMA
Browse files Browse the repository at this point in the history
When doing a full address space flush, only look at areas covered by a VMA.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed May 7, 2007
1 parent 16dd07b commit 1e7371c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions arch/um/kernel/skas/tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,13 @@ void flush_tlb_mm_skas(struct mm_struct *mm)

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)
Expand Down

0 comments on commit 1e7371c

Please sign in to comment.