Skip to content

Commit 7a079ba

Browse files
xzpeterakpm00
authored andcommitted
mm/uffd: fix comment in handling pte markers
The comment is obsolete after f369b07 ("mm/uffd: reset write protection when unregister with wp-mode", 2022-08-20). Remove it. Link: https://lkml.kernel.org/r/20230215205800.223549-1-peterx@redhat.com Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Axel Rasmussen <axelrasmussen@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent cd77558 commit 7a079ba

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

mm/memory.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3627,9 +3627,7 @@ static vm_fault_t pte_marker_handle_uffd_wp(struct vm_fault *vmf)
36273627
{
36283628
/*
36293629
* Just in case there're leftover special ptes even after the region
3630-
* got unregistered - we can simply clear them. We can also do that
3631-
* proactively when e.g. when we do UFFDIO_UNREGISTER upon some uffd-wp
3632-
* ranges, but it should be more efficient to be done lazily here.
3630+
* got unregistered - we can simply clear them.
36333631
*/
36343632
if (unlikely(!userfaultfd_wp(vmf->vma) || vma_is_anonymous(vmf->vma)))
36353633
return pte_marker_clear(vmf);

0 commit comments

Comments
 (0)