| Function report | 
| Source Code: mm\migrate.c | Create Date:2022-07-28 15:58:15 | 
| Last Modify:2022-05-20 09:53:13 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Restore a potential migration pte to a working pte entry
Proto:static bool remove_migration_pte(struct page *page, struct vm_area_struct *vma, unsigned long addr, void *old)
Type:bool
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct page * | page | |
| struct vm_area_struct * | vma | |
| unsigned long | addr | |
| void * | old | 
| 207 | struct page_vma_mapped_walk pvmw = {page = old, vma = vma, address = addr, flags = Avoid racy checks | Look for migarion entries rather than present PTEs , } | 
| 217 | VM_BUG_ON_PAGE(PageTail(page), page) | 
| 221 | Else new = page - Our offset within mapping. + linear_page_index(vma, address) | 
| 236 | If pte_swp_soft_dirty( * pte) Then pte = pte_mksoft_dirty(pte) | 
| 242 | entry = Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t. | 
| 247 | If is_device_private_page(new) Then | 
| 255 | pte = pte_mkhuge(pte) | 
| 256 | pte = arch_make_huge_pte(pte, vma, new, 0) | 
| 260 | Else page_dup_rmap(new, true) | 
| 262 | Else | 
| 282 | Return true | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |