提交 a3eea484 编写于 作者: R Rik Bobbaers 提交者: Linus Torvalds

[PATCH] mlock cleanup

mm is defined as vma->vm_mm, so use that.
Acked-by: NHugh Dickins <hugh@veritas.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册