]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
lowmem: update memory management functions for the new kernel
authorViktor Rosendahl <viktor.rosendahl@nokia.com>
Thu, 11 Sep 2008 16:20:38 +0000 (19:20 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 12 Sep 2008 18:11:50 +0000 (11:11 -0700)
These functions now require an additional argument, so let's add it.

Signed-off-by: Viktor Rosendahl <viktor.rosendahl@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
security/lowmem.c

index a5b6088fad7bf978dfd59d02351a1a360a94173d..939901c5cbadf9d89aab55cf34eb365c367dbd57 100644 (file)
@@ -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);