thp: mprotect: pass vma down to page table walkers
authorJohannes Weiner <[email protected]>
Thu, 13 Jan 2011 23:47:03 +0000 (15:47 -0800)
committerLinus Torvalds <[email protected]>
Fri, 14 Jan 2011 01:32:44 +0000 (17:32 -0800)
commitb36f5b0710e9e3b92484de32920fddcb17278664
tree823f5ee3ff0e18c67489bd8e525d83f3f7cf1b1a
parentc489f1257b8cacd4881a18da1e93659f934a8e98
thp: mprotect: pass vma down to page table walkers

Flushing the tlb for huge pmds requires the vma's anon_vma, so pass along
the vma instead of the mm, we can always get the latter when we need it.

Signed-off-by: Johannes Weiner <[email protected]>
Signed-off-by: Andrea Arcangeli <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/mprotect.c