mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
userfaultfd: use vma_is_anonymous
Cleanup the vma->vm_ops usage. Side note: it would be more robust if vma_is_anonymous() would also check that vm_flags hasn't VM_PFNMAP set. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Andrea Arcangeli <[email protected]> Cc: "Dr. David Alan Gilbert" <[email protected]> Cc: Hillf Danton <[email protected]> Cc: Michael Rapoport <[email protected]> Cc: Mike Kravetz <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Pavel Emelyanov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
8474901a33
commit
a94720bf82
2 changed files with 5 additions and 5 deletions
|
|
@ -197,7 +197,7 @@ retry:
|
|||
* FIXME: only allow copying on anonymous vmas, tmpfs should
|
||||
* be added.
|
||||
*/
|
||||
if (dst_vma->vm_ops)
|
||||
if (!vma_is_anonymous(dst_vma))
|
||||
goto out_unlock;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue