Re: [PATCH 20/23] hugetlb/userfaultfd: Allow wr-protect none ptes

Mike Kravetz
2021-04-23T00:08:55Z

On 3/22/21 5:50 PM, Peter Xu wrote:
> Teach hugetlbfs code to wr-protect none ptes just in case the page cache
> existed for that pte. Meanwhile we also need to be able to recognize a uffd-wp
> marker pte and remove it for uffd_wp_resolve.
>
> Since at it, introduce a variable "psize" to replace all references to the huge
> page size fetcher.

Introducing psize may have caused most changes. :) I like it.

>
> Signed-off-by: Peter Xu <peterx@redhat.com>
> ---
> mm/hugetlb.c | 29 +++++++++++++++++++++++++----
> 1 file changed, 25 insertions(+), 4 deletions(-)

Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
--
Mike Kravetz