summary refs log tree commit diff
path: root/mm
diff options
context:
space:
mode:
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>2023-09-15 19:15:48 +0300
committerCristian Ciocaltea <cristian.ciocaltea@collabora.com>2023-09-15 19:15:48 +0300
commitc1358d94ea1fe5705dc7bd4542f262151c9844f6 (patch)
tree515339e48fa02fc454a241921c18a30d9e215b9f /mm
parent768bc393d4e78159a2765b0b4bb49ee3375921d1 (diff)
parenta325a7b546ec539ca7877f258bb59beff9ef41fc (diff)
downloadlinux-c1358d94ea1fe5705dc7bd4542f262151c9844f6.tar.gz
Merge branch 6.1/features/mm-soft-dirty-file
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Diffstat (limited to 'mm')
-rw-r--r--mm/mprotect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mprotect.c b/mm/mprotect.c
index 668bfaa6ed2a..27a665e0b524 100644
--- a/mm/mprotect.c
+++ b/mm/mprotect.c
@@ -54,7 +54,7 @@ static inline bool can_change_pte_writable(struct vm_area_struct *vma,
 		return false;
 
 	/* Do we need write faults for uffd-wp tracking? */
-	if (userfaultfd_pte_wp(vma, pte))
+	if (pte_uffd_wp(pte))
 		return false;
 
 	if (!(vma->vm_flags & VM_SHARED)) {