Commit a3eea484 authored by Rik Bobbaers's avatar Rik Bobbaers Committed by Linus Torvalds

[PATCH] mlock cleanup

mm is defined as vma->vm_mm, so use that.
Acked-by: default avatarHugh Dickins <hugh@veritas.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8fb4fc68
...@@ -65,7 +65,7 @@ success: ...@@ -65,7 +65,7 @@ success:
ret = make_pages_present(start, end); ret = make_pages_present(start, end);
} }
vma->vm_mm->locked_vm -= pages; mm->locked_vm -= pages;
out: out:
if (ret == -ENOMEM) if (ret == -ENOMEM)
ret = -EAGAIN; ret = -EAGAIN;
......
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