diff options
author | Rik Bobbaers <Rik.Bobbaers@cc.kuleuven.be> | 2006-12-06 23:32:25 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:22 -0500 |
commit | a3eea484f7a1aadb70ed6665338026a09ad6ce85 (patch) | |
tree | 95bf0a3d1bc65d00b4cb26e5cf2a419f13ac5814 /mm | |
parent | 8fb4fc68ca391862b061b3d358a288ccf6abed39 (diff) |
[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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mlock.c b/mm/mlock.c index b90c59573abf..3446b7ef731e 100644 --- a/mm/mlock.c +++ b/mm/mlock.c | |||
@@ -65,7 +65,7 @@ success: | |||
65 | ret = make_pages_present(start, end); | 65 | ret = make_pages_present(start, end); |
66 | } | 66 | } |
67 | 67 | ||
68 | vma->vm_mm->locked_vm -= pages; | 68 | mm->locked_vm -= pages; |
69 | out: | 69 | out: |
70 | if (ret == -ENOMEM) | 70 | if (ret == -ENOMEM) |
71 | ret = -EAGAIN; | 71 | ret = -EAGAIN; |