Function report |
Source Code:mm\filemap.c |
Create Date:2022-07-28 14:02:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lemap_fault - read in file data for page fault handling*@vmf: struct vm_fault containing details of the fault* filemap_fault() is invoked via the vma operations vector for a* mapped memory region to read in file data during a page fault
Proto:vm_fault_t filemap_fault(struct vm_fault *vmf)
Type:vm_fault_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct vm_fault * | vmf |
2487 | ret = 0 |
2490 | If Value for the false possibility is greater at compile time(offset >= max_off) Then Return VM_FAULT_SIGBUS |
2497 | If Value is more likely to compile time(page) && Not (FAULT_FLAG_xxx flags & Second try ) Then |
2503 | Else if Not page Then |
2505 | Disable counters |
2507 | ret = VM_FAULT_MAJOR |
2509 | retry_find : |
2513 | If Not page Then |
2527 | Go to retry_find |
2529 | VM_BUG_ON_PAGE(Get the offset in PAGE_SIZE.* (TODO: hugepage should have ->index in PAGE_SIZE) != offset, page) |
2535 | If Value for the false possibility is greater at compile time(!PageUptodate(page)) Then Go to page_not_uptodate |
2543 | If fpin Then |
2545 | Go to out_retry |
2553 | If Value for the false possibility is greater at compile time(offset >= max_off) Then |
2556 | Return VM_FAULT_SIGBUS |
2559 | ->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR). = page |
2560 | Return ret | VM_FAULT_LOCKED |
2562 | page_not_uptodate : |
2569 | ClearPageError(page) |
2570 | fpin = maybe_unlock_mmap_for_io(vmf, fpin) |
2572 | If Not error Then |
2574 | If Not PageUptodate(page) Then error = -EIO |
2581 | If Not error || error == AOP_TRUNCATED_PAGE Then Go to retry_find |
2586 | Return VM_FAULT_SIGBUS |
2588 | out_retry : |
2598 | Return ret | VM_FAULT_RETRY |
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 |