[PATCH] mlock cleanup

mm is defined as vma->vm_mm, so use that.

Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Rik Bobbaers 2006-12-06 20:32:25 -08:00 committed by Linus Torvalds
parent 8fb4fc68ca
commit a3eea484f7

View file

@ -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;