From: Rik Bobbaers Date: Thu, 7 Dec 2006 04:32:25 +0000 (-0800) Subject: [PATCH] mlock cleanup X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a3eea484f7a1aadb70ed6665338026a09ad6ce85;p=openwrt%2Fstaging%2Fblogic.git [PATCH] mlock cleanup mm is defined as vma->vm_mm, so use that. Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/mlock.c b/mm/mlock.c index b90c59573abf..3446b7ef731e 100644 --- a/mm/mlock.c +++ b/mm/mlock.c @@ -65,7 +65,7 @@ success: ret = make_pages_present(start, end); } - vma->vm_mm->locked_vm -= pages; + mm->locked_vm -= pages; out: if (ret == -ENOMEM) ret = -EAGAIN;