[PATCH 06/10] lowmem: update memory management functions for the new kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These functions now require an additional argument, so let's add it.

Signed-off-by: Viktor Rosendahl <viktor.rosendahl@xxxxxxxxx>
---
 security/lowmem.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/security/lowmem.c b/security/lowmem.c
index a5b6088..939901c 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);
 
-- 
1.5.6.3

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux