mirror of
https://gitee.com/openharmony/kernel_linux
synced 2025-01-11 02:17:06 +00:00
[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:
parent
8fb4fc68ca
commit
a3eea484f7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user