Skip to content

Commit

Permalink
[PATCH] mlock cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rik Bobbaers authored and Linus Torvalds committed Dec 7, 2006
1 parent 8fb4fc6 commit a3eea48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/mlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a3eea48

Please sign in to comment.