diff options
Diffstat (limited to 'mm/mlock.c')
-rw-r--r-- | mm/mlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/mlock.c b/mm/mlock.c index e13918d4fc4f..22041aa9f5c1 100644 --- a/mm/mlock.c +++ b/mm/mlock.c | |||
@@ -166,9 +166,9 @@ static long __mlock_vma_pages_range(struct vm_area_struct *vma, | |||
166 | VM_BUG_ON(end > vma->vm_end); | 166 | VM_BUG_ON(end > vma->vm_end); |
167 | VM_BUG_ON(!rwsem_is_locked(&mm->mmap_sem)); | 167 | VM_BUG_ON(!rwsem_is_locked(&mm->mmap_sem)); |
168 | 168 | ||
169 | gup_flags = 0; | 169 | gup_flags = FOLL_TOUCH | FOLL_GET; |
170 | if (vma->vm_flags & VM_WRITE) | 170 | if (vma->vm_flags & VM_WRITE) |
171 | gup_flags = GUP_FLAGS_WRITE; | 171 | gup_flags |= FOLL_WRITE; |
172 | 172 | ||
173 | while (nr_pages > 0) { | 173 | while (nr_pages > 0) { |
174 | int i; | 174 | int i; |