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 @@ static int mlock_fixup(struct vm_area_struct *vma, struct vm_area_struct **prev,
ret = make_pages_present(start, end);
}
vma->vm_mm->locked_vm -= pages;
mm->locked_vm -= pages;
out:
if (ret == -ENOMEM)
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