1
0
Fork 0

[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>
hifive-unleashed-5.1
Rik Bobbaers 2006-12-06 20:32:25 -08:00 committed by Linus Torvalds
parent 8fb4fc68ca
commit a3eea484f7
1 changed files with 1 additions and 1 deletions

View File

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