Function report |
Source Code:mm\memory-failure.c |
Create Date:2022-07-28 16:18:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static int me_huge_page(struct page *p, unsigned long pfn)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | p | |
unsigned long | pfn |
771 | res = 0 |
772 | hpage = compound_head(p) |
775 | If Not PageHuge() only returns true for hugetlbfs pages, but not for normal or* transparent huge pages. See the PageTransHuge() documentation for more* details. Then Return MF_DELAYED |
778 | mapping = page_mapping(hpage) |
779 | If mapping Then |
780 | res = truncate_error_page(hpage, pfn, mapping) |
781 | Else |
788 | If PageAnon(hpage) Then 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 | Return res |
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 |