X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=security%2Fdummy.c;h=a9e69659533ebd97692317469bfc54a8556ef21a;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=05d9885886eba10c245a30c18f3861ee66340cef;hpb=9bf4aaab3e101692164d49b7ca357651eb691cb6;p=linux-2.6.git diff --git a/security/dummy.c b/security/dummy.c index 05d988588..a9e696595 100644 --- a/security/dummy.c +++ b/security/dummy.c @@ -121,10 +121,10 @@ static int dummy_vm_enough_memory(long pages) /* * 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;