From 1b5ebc5db6d27d38a3fc4a88cad4f531e00c1841 Mon Sep 17 00:00:00 2001 From: Viktor Rosendahl Date: Thu, 11 Sep 2008 19:20:38 +0300 Subject: [PATCH] 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 --- security/lowmem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.41.3