Explorar o código

[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>
Rik Bobbaers %!s(int64=19) %!d(string=hai) anos
pai
achega
a3eea484f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mm/mlock.c

+ 1 - 1
mm/mlock.c

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