Commit 1b5ebc5d authored by Viktor Rosendahl's avatar Viktor Rosendahl Committed by Tony Lindgren

lowmem: update memory management functions for the new kernel

These functions now require an additional argument, so let's add it.
Signed-off-by: default avatarViktor Rosendahl <viktor.rosendahl@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 49d948a1
...@@ -152,7 +152,7 @@ static void high_watermark_state(int new_state) ...@@ -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; unsigned long free, allowed;
int cap_sys_admin = 0, notify; int cap_sys_admin = 0, notify;
...@@ -166,7 +166,7 @@ static int low_vm_enough_memory(long pages) ...@@ -166,7 +166,7 @@ static int low_vm_enough_memory(long pages)
/* We activate ourselves only after both parameters have been /* We activate ourselves only after both parameters have been
* configured. */ * configured. */
if (deny_pages == 0 || notify_low_pages == 0 || notify_high_pages == 0) 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); vm_acct_memory(pages);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment