From: Rik Bobbaers Date: Thu, 7 Dec 2006 04:32:25 +0000 (-0800) Subject: [PATCH] mlock cleanup X-Git-Tag: v2.6.20-rc1~145^2^2~335 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3eea484f7a1aadb70ed6665338026a09ad6ce85;p=linux-2.6 [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 b90c59573a..3446b7ef73 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;