Message ID | 172ab047-0dc7-1704-5f30-ec7cd3632e09@bytedance.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Conditions for FOLL_LONGTERM mapping in fsdax | expand |
diff --git a/mm/gup.c b/mm/gup.c index eb8d7baf9e4d..f77bb428cf9b 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -1055,9 +1055,6 @@ static int check_vma_flags(struct vm_area_struct *vma, unsigned long gup_flags) if (gup_flags & FOLL_ANON && !vma_is_anonymous(vma)) return -EFAULT; - if ((gup_flags & FOLL_LONGTERM) && vma_is_fsdax(vma)) - return -EOPNOTSUPP; - if (vma_is_secretmem(vma)) return -EFAULT;