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

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

Advertisement

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

Filename:/security/commoncap.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.6.9-rc3  2.6.9-rc2  2.6.9-rc1-bk19  2.6.9-rc1-bk18  2.6.9-rc1-bk17  2.6.9-rc1-bk16 
(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  commoncap.c

Patch

diff -Nru a/security/commoncap.c b/security/commoncap.c
--- a/security/commoncap.c   2004-09-03 02:08:24 -07:00
+++ b/security/commoncap.c   2004-09-30 06:34:51 -07:00
@@ -314,10 +314,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) {
       unsigned long n;
 
       free = get_page_cache_size();


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