lkml.org 
[lkml]   [2016]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC PATCH 3/6] mm/userfaultfd: add __mcopy_atomic_hugetlb for huge page UFFDIO_COPY
Date
> @@ -182,6 +354,13 @@ retry:
> goto out_unlock;
>
> /*
> + * If this is a HUGETLB vma, pass off to appropriate routine
> + */
> + if (dst_vma->vm_flags & VM_HUGETLB)

Use is_vm_hugetlb_page()?
And in cases in subsequent patches?

Hillf
> + return __mcopy_atomic_hugetlb(dst_mm, dst_vma, dst_start,
> + src_start, len, false);
> +
> + /*
> * Be strict and only allow __mcopy_atomic on userfaultfd
> * registered ranges to prevent userland errors going
> * unnoticed. As far as the VM consistency is concerned, it
> --
> 2.4.11

\
 
 \ /
  Last update: 2016-06-07 08:41    [W:2.393 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site