Skip to content
Snippets Groups Projects
Commit a3eea484 authored by Rik Bobbaers's avatar Rik Bobbaers Committed by Linus Torvalds
Browse files

[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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment