From: Viktor Rosendahl Date: Thu, 11 Sep 2008 16:20:38 +0000 (+0300) Subject: lowmem: update memory management functions for the new kernel X-Git-Tag: v2.6.27-omap1~201 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1b5ebc5db6d27d38a3fc4a88cad4f531e00c1841;p=linux-2.6-omap-h63xx.git lowmem: update memory management functions for the new kernel These functions now require an additional argument, so let's add it. Signed-off-by: Viktor Rosendahl Signed-off-by: Tony Lindgren --- diff --git a/security/lowmem.c b/security/lowmem.c index a5b6088fad7..939901c5cba 100644 --- a/security/lowmem.c +++ b/security/lowmem.c @@ -152,7 +152,7 @@ static void high_watermark_state(int new_state) } } -static int low_vm_enough_memory(long pages) +static int low_vm_enough_memory(struct mm_struct *mm, long pages) { unsigned long free, allowed; int cap_sys_admin = 0, notify; @@ -166,7 +166,7 @@ static int low_vm_enough_memory(long pages) /* We activate ourselves only after both parameters have been * configured. */ if (deny_pages == 0 || notify_low_pages == 0 || notify_high_pages == 0) - return __vm_enough_memory(pages, cap_sys_admin); + return __vm_enough_memory(mm, pages, cap_sys_admin); vm_acct_memory(pages);