Function report |
Source Code:mm\huge_memory.c |
Create Date:2022-07-28 16:02:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Return true if we do MADV_FREE successfully on entire pmd page.* Otherwise, return false.
Proto:bool madvise_free_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, pmd_t *pmd, unsigned long addr, unsigned long next)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct mmu_gather * | tlb | |
struct vm_area_struct * | vma | |
pmd_t * | pmd | |
unsigned long | addr | |
unsigned long | next |
1702 | bool ret = false |
1707 | If Not ptl Then Go to out_unlocked |
1711 | If is_huge_zero_pmd(orig_pmd) Then Go to out |
1715 | VM_BUG_ON(thp_migration_supported() && !is_pmd_migration_entry(orig_pmd)) |
1717 | Go to out |
1720 | page = Currently stuck as a macro due to indirect forward reference to* linux/mmzone.h's __section_mem_map_addr() definition:(orig_pmd) |
1725 | If page_mapcount(page) != 1 Then Go to out |
1728 | If Not Return true if the page was successfully locked Then Go to out |
1735 | If next - addr != HPAGE_PMD_SIZE Then |
1744 | If PageDirty(page) Then ClearPageDirty(page) |
1749 | pmdp_invalidate(vma, addr, pmd) |
1751 | orig_pmd = pmd_mkclean(orig_pmd) |
1753 | set_pmd_at(mm, addr, pmd, orig_pmd) |
1754 | tlb_remove_pmd_tlb_entry(tlb, pmd, addr) |
1758 | ret = true |
1759 | out : |
1760 | spin_unlock(ptl) |
1761 | out_unlocked : |
1762 | Return ret |
Name | Describe |
---|---|
madvise_free_pte_range |
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 |