| Kernel v2.6.9-rc3-bk1 /security/commoncap.c |
|---|
 2.6.9-rc3-bk1
 security
 commoncap.c
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();
|