diff options
Diffstat (limited to 'mm/mlock.c')
-rw-r--r-- | mm/mlock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/mlock.c b/mm/mlock.c index 74e5a6547c3d..41cc47e28ad6 100644 --- a/mm/mlock.c +++ b/mm/mlock.c | |||
@@ -527,7 +527,8 @@ static int mlock_fixup(struct vm_area_struct *vma, struct vm_area_struct **prev, | |||
527 | vm_flags_t old_flags = vma->vm_flags; | 527 | vm_flags_t old_flags = vma->vm_flags; |
528 | 528 | ||
529 | if (newflags == vma->vm_flags || (vma->vm_flags & VM_SPECIAL) || | 529 | if (newflags == vma->vm_flags || (vma->vm_flags & VM_SPECIAL) || |
530 | is_vm_hugetlb_page(vma) || vma == get_gate_vma(current->mm)) | 530 | is_vm_hugetlb_page(vma) || vma == get_gate_vma(current->mm) || |
531 | vma_is_dax(vma)) | ||
531 | /* don't set VM_LOCKED or VM_LOCKONFAULT and don't count */ | 532 | /* don't set VM_LOCKED or VM_LOCKONFAULT and don't count */ |
532 | goto out; | 533 | goto out; |
533 | 534 | ||