Function report |
Source Code:mm\hugetlb.c |
Create Date:2022-07-28 15:26:03 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__free_huge_page
Proto:static void __free_huge_page(struct page *page)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct page * | page |
| 1146 | h = page_hstate(page) |
| 1147 | nid = page_to_nid(page) |
| 1148 | spool = page_private(page) |
| 1152 | VM_BUG_ON_PAGE(page_count(page), page) |
| 1153 | VM_BUG_ON_PAGE(page_mapcount(page), page) |
| 1155 | set_page_private(page, 0) |
| 1156 | See page-flags.h for PAGE_MAPPING_FLAGS = NULL |
| 1157 | restore_reserve = Private page markings that may be used by the filesystem that owns the page* for its own purposes.* - PG_private and PG_private_2 cause releasepage() and co to be invoked |
| 1168 | If Not restore_reserve Then |
| 1179 | spin_lock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.) |
| 1180 | clear_page_huge_active(page) |
| 1183 | If restore_reserve Then resv_huge_pages++ |
| 1190 | Else if surplus_huge_pages_node[nid] Then |
| 1196 | Else |
| 1198 | enqueue_huge_page(h, page) |
| 1200 | spin_unlock( & Protects updates to hugepage_freelists, hugepage_activelist, nr_huge_pages,* free_huge_pages, and surplus_huge_pages.) |
| Name | Describe |
|---|---|
| free_hpage_workfn | |
| free_huge_page |
| 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 |