From: Miaohe Lin Date: Sun, 23 Jul 2023 03:31:14 +0000 (+0800) Subject: mm/mprotect: fix obsolete function name in change_pte_range() X-Git-Tag: v6.6.7~1970^2~309 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eafcb7a972e2039e0f8a8c0d4fd3e90e485c8b9c;p=platform%2Fkernel%2Flinux-starfive.git mm/mprotect: fix obsolete function name in change_pte_range() Since commit 79a1971c5f14 ("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.com Signed-off-by: Miaohe Lin Reviewed-by: David Hildenbrand Signed-off-by: Andrew Morton --- diff --git a/mm/mprotect.c b/mm/mprotect.c index 5c3112d..3f36c88 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c @@ -213,7 +213,7 @@ static long change_pte_range(struct mmu_gather *tlb, } else if (is_writable_device_private_entry(entry)) { /* * We do not preserve soft-dirtiness. See - * copy_one_pte() for explanation. + * copy_nonpresent_pte() for explanation. */ entry = make_readable_device_private_entry( swp_offset(entry));