Home
last modified time | relevance | path

Searched refs:ptent (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/mm/
Dmapping_dirty_helpers.c38 pte_t ptent = *pte; in wp_pte() local
40 if (pte_write(ptent)) { in wp_pte()
43 ptent = pte_wrprotect(old_pte); in wp_pte()
44 ptep_modify_prot_commit(walk->vma, addr, pte, old_pte, ptent); in wp_pte()
94 pte_t ptent = *pte; in clean_record_pte() local
96 if (pte_dirty(ptent)) { in clean_record_pte()
101 ptent = pte_mkclean(old_pte); in clean_record_pte()
102 ptep_modify_prot_commit(walk->vma, addr, pte, old_pte, ptent); in clean_record_pte()
Dmadvise.c333 pte_t *orig_pte, *pte, ptent; in madvise_cold_or_pageout_pte_range() local
416 ptent = *pte; in madvise_cold_or_pageout_pte_range()
418 if (pte_none(ptent)) in madvise_cold_or_pageout_pte_range()
421 if (!pte_present(ptent)) in madvise_cold_or_pageout_pte_range()
424 page = vm_normal_page(vma, addr, ptent); in madvise_cold_or_pageout_pte_range()
464 if (pte_young(ptent)) { in madvise_cold_or_pageout_pte_range()
465 ptent = ptep_get_and_clear_full(mm, addr, pte, in madvise_cold_or_pageout_pte_range()
467 ptent = pte_mkold(ptent); in madvise_cold_or_pageout_pte_range()
468 set_pte_at(mm, addr, pte, ptent); in madvise_cold_or_pageout_pte_range()
603 pte_t *orig_pte, *pte, ptent; in madvise_free_pte_range() local
[all …]
Dmprotect.c115 pte_t ptent; in change_pte_range() local
171 ptent = pte_modify(oldpte, newprot); in change_pte_range()
173 ptent = pte_mk_savedwrite(ptent); in change_pte_range()
176 ptent = pte_wrprotect(ptent); in change_pte_range()
177 ptent = pte_mkuffd_wp(ptent); in change_pte_range()
179 ptent = pte_clear_uffd_wp(ptent); in change_pte_range()
196 !pte_write(ptent) && in change_pte_range()
197 can_change_pte_writable(vma, addr, ptent)) in change_pte_range()
198 ptent = pte_mkwrite(ptent); in change_pte_range()
200 ptep_modify_prot_commit(vma, addr, pte, oldpte, ptent); in change_pte_range()
[all …]
Dmemcontrol.c5599 unsigned long addr, pte_t ptent) in mc_handle_present_pte() argument
5601 struct page *page = vm_normal_page(vma, addr, ptent); in mc_handle_present_pte()
5620 pte_t ptent, swp_entry_t *entry) in mc_handle_swap_pte() argument
5623 swp_entry_t ent = pte_to_swp_entry(ptent); in mc_handle_swap_pte()
5653 pte_t ptent, swp_entry_t *entry) in mc_handle_swap_pte() argument
5660 unsigned long addr, pte_t ptent) in mc_handle_file_pte() argument
5824 unsigned long addr, pte_t ptent, union mc_target *target) in get_mctgt_type() argument
5830 if (pte_present(ptent)) in get_mctgt_type()
5831 page = mc_handle_present_pte(vma, addr, ptent); in get_mctgt_type()
5832 else if (pte_none_mostly(ptent)) in get_mctgt_type()
[all …]
Dmemory.c1416 pte_t ptent = *pte; in zap_pte_range() local
1419 if (pte_none(ptent)) in zap_pte_range()
1425 if (pte_present(ptent)) { in zap_pte_range()
1426 page = vm_normal_page(vma, addr, ptent); in zap_pte_range()
1429 ptent = ptep_get_and_clear_full(mm, addr, pte, in zap_pte_range()
1433 ptent); in zap_pte_range()
1438 if (pte_dirty(ptent)) { in zap_pte_range()
1442 if (pte_young(ptent) && in zap_pte_range()
1449 print_bad_pte(vma, addr, ptent, page); in zap_pte_range()
1458 entry = pte_to_swp_entry(ptent); in zap_pte_range()
[all …]
Dvmalloc.c336 pte_t ptent = ptep_get_and_clear(&init_mm, addr, pte); in vunmap_pte_range() local
337 WARN_ON(!pte_none(ptent) && !pte_present(ptent)); in vunmap_pte_range()
/linux-6.1.9/fs/proc/
Dtask_mmu.c1107 pte_t ptent = *pte; in clear_soft_dirty() local
1109 if (pte_present(ptent)) { in clear_soft_dirty()
1112 if (pte_is_pinned(vma, addr, ptent)) in clear_soft_dirty()
1115 ptent = pte_wrprotect(old_pte); in clear_soft_dirty()
1116 ptent = pte_clear_soft_dirty(ptent); in clear_soft_dirty()
1117 ptep_modify_prot_commit(vma, addr, pte, old_pte, ptent); in clear_soft_dirty()
1118 } else if (is_swap_pte(ptent)) { in clear_soft_dirty()
1119 ptent = pte_swp_clear_soft_dirty(ptent); in clear_soft_dirty()
1120 set_pte_at(vma->vm_mm, addr, pte, ptent); in clear_soft_dirty()
1165 pte_t *pte, ptent; in clear_refs_pte_range() local
[all …]