Commit eafcb7a9 authored by Miaohe Lin's avatar Miaohe Lin Committed by Andrew Morton

mm/mprotect: fix obsolete function name in change_pte_range()

Since commit 79a1971c ("mm: move the copy_one_pte() pte_present check
into the caller"), the explanation of preserving soft-dirtiness is moved
into copy_nonpresent_pte().  Update corresponding comment.

Link: https://lkml.kernel.org/r/20230723033114.3224409-1-linmiaohe@huawei.comSigned-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 05f1edac
...@@ -213,7 +213,7 @@ static long change_pte_range(struct mmu_gather *tlb, ...@@ -213,7 +213,7 @@ static long change_pte_range(struct mmu_gather *tlb,
} else if (is_writable_device_private_entry(entry)) { } else if (is_writable_device_private_entry(entry)) {
/* /*
* We do not preserve soft-dirtiness. See * We do not preserve soft-dirtiness. See
* copy_one_pte() for explanation. * copy_nonpresent_pte() for explanation.
*/ */
entry = make_readable_device_private_entry( entry = make_readable_device_private_entry(
swp_offset(entry)); swp_offset(entry));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment