函数逻辑报告 | 
Source Code:mm\memory-failure.c | 
Create Date:2022-07-27 17:53:36 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Huge pages. Needs work.* Issues:* - Error on hugepage is contained in hugepage unit (not in raw page unit.)* To narrow down kill region to one page, we need to break up pmd.
函数原型:static int me_huge_page(struct page *p, unsigned long pfn)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct page * | p | |
| unsigned long | pfn | 
| 771 | res等于0 | 
| 772 | hpage等于compound_head(p) | 
| 775 | 如果非PageHuge() only returns true for hugetlbfs pages, but not for normal or* transparent huge pages. See the PageTransHuge() documentation for more* details.则返回:MF_DELAYED | 
| 778 | mapping等于page_mapping(hpage) | 
| 779 | 如果mapping则 | 
| 780 | res等于truncate_error_page(hpage, pfn, mapping) | 
| 781 | 否则 | 
| 788 | 如果PageAnon(hpage)则Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page. | 
| 791 | res等于MF_RECOVERED | 
| 795 | 返回:res | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |