Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.1-pre12 /mm/mmap.c

Filename:/mm/mmap.c
Lines Added:3
Lines Deleted:1
Also changed in: (Previous) 2.4.0-prerelease  2.4.0-test12  2.4.0-test11  2.4.0-test10  2.4.0-test8  2.4.0-test7 
(Following) 2.4.1  2.4.1-ac1  2.4.1-ac2  2.4.1-ac3  2.4.1-ac4  2.4.1-ac5 

Location
[  2.4.1-pre12
  [  mm
     o  mmap.c

Patch

diff -u --recursive --new-file v2.4.0/linux/mm/mmap.c linux/mm/mmap.c
--- v2.4.0/linux/mm/mmap.c   Sat Dec 30 09:35:19 2000
+++ linux/mm/mmap.c   Mon Jan 29 08:10:41 2001
@@ -883,6 +883,8 @@
    mm->rss = 0;
    mm->total_vm = 0;
    mm->locked_vm = 0;
+
+   flush_cache_mm(mm);
    while (mpnt) {
       struct vm_area_struct * next = mpnt->vm_next;
       unsigned long start = mpnt->vm_start;
@@ -895,13 +897,13 @@
       }
       mm->map_count--;
       remove_shared_vm_struct(mpnt);
-      flush_cache_range(mm, start, end);
       zap_page_range(mm, start, size);
       if (mpnt->vm_file)
          fput(mpnt->vm_file);
       kmem_cache_free(vm_area_cachep, mpnt);
       mpnt = next;
    }
+   flush_tlb_mm(mm);
 
    /* This is just debugging */
    if (mm->map_count)


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.