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

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

Advertisement

Kernel v2.4.11 /mm/mmap.c

Filename:/mm/mmap.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.4.11-pre6  2.4.11-pre5  2.4.11-pre4  2.4.11-pre3  2.4.11-pre2  2.4.11-pre1 
(Following) 2.4.12-ac1  2.4.12-ac2  2.4.12-ac3  2.4.12-ac4  2.4.12-ac5  2.4.12-ac6 

Location
[  2.4.11
  [  mm
     o  mmap.c

Patch

diff -u --recursive --new-file v2.4.10/linux/mm/mmap.c linux/mm/mmap.c
--- v2.4.10/linux/mm/mmap.c   Sun Sep 23 11:41:01 2001
+++ linux/mm/mmap.c   Sun Sep 30 11:05:40 2001
@@ -67,8 +67,8 @@
    if (sysctl_overcommit_memory)
        return 1;
 
-   free = atomic_read(&buffermem_pages);
-   free += atomic_read(&page_cache_size);
+   /* The page cache contains buffer pages these days.. */
+   free = atomic_read(&page_cache_size);
    free += nr_free_pages();
    free += nr_swap_pages;
 


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