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

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

Advertisement

Kernel v2.6.9-rc3-bk1 /security/dummy.c

Filename:/security/dummy.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.6.8  2.6.8-rc4  2.6.8-rc3  2.6.8-rc2  2.6.8-rc1  2.6.7-bk21 
(Following) 2.6.9-rc3-bk2  2.6.9-rc3-bk3  2.6.9-rc3-bk4  2.6.9-rc3-bk5  2.6.9-rc3-bk6  2.6.9-rc3-bk7 

Location
[  2.6.9-rc3-bk1
  [  security
     o  dummy.c

Patch

diff -Nru a/security/dummy.c b/security/dummy.c
--- a/security/dummy.c   2004-06-18 11:43:31 -07:00
+++ b/security/dummy.c   2004-09-30 06:34:51 -07:00
@@ -121,10 +121,10 @@
    /*
     * Sometimes we want to use more memory than we have
     */
-   if (sysctl_overcommit_memory == 1)
+   if (sysctl_overcommit_memory == OVERCOMMIT_ALWAYS)
       return 0;
 
-   if (sysctl_overcommit_memory == 0) {
+   if (sysctl_overcommit_memory == OVERCOMMIT_GUESS) {
       free = get_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.