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