Re: [PATCH 20/23] hugetlb/userfaultfd: Allow wr-protect none ptes
From: Mike Kravetz
Date: Thu Apr 22 2021 - 20:08:55 EST
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@xxxxxxxxxx>
> ---
> mm/hugetlb.c | 29 +++++++++++++++++++++++++----
> 1 file changed, 25 insertions(+), 4 deletions(-)
Reviewed-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
--
Mike Kravetz