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

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

Advertisement

Kernel v2.4.14-pre8 /mm/mmap.c

Filename:/mm/mmap.c
Lines Added:0
Lines Deleted:8
Also changed in: (Previous) 2.4.14-pre7  2.4.14-pre6  2.4.14-pre5  2.4.14-pre4  2.4.14-pre3  2.4.13-ac7 
(Following) 2.4.14  2.4.18-pre3-ac1  2.4.18-pre3-ac2  2.4.18-pre7-ac1  2.4.18-pre7-ac2  2.4.18-pre7-ac3 

Location
[  2.4.14-pre8
  [  mm
     o  mmap.c

Patch

diff -u --recursive --new-file v2.4.13/linux/mm/mmap.c linux/mm/mmap.c
--- v2.4.13/linux/mm/mmap.c   Tue Oct  9 17:06:53 2001
+++ linux/mm/mmap.c   Sat Oct 27 00:02:54 2001
@@ -73,14 +73,6 @@
    free += nr_swap_pages;
 
    /*
-    * This double-counts: the nrpages are both in the page-cache
-    * and in the swapper space. At the same time, this compensates
-    * for the swap-space over-allocation (ie "nr_swap_pages" being
-    * too small. 
-    */
-   free += swapper_space.nrpages;
-
-   /*
     * The code below doesn't account for free space in the inode
     * and dentry slab cache, slab cache fragmentation, inodes and
     * dentries which will become freeable under VM load, etc.


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