Function report | 
Source Code:mm\swap_state.c | 
Create Date:2022-07-28 15:15:11 | 
| Last Modify:2020-03-17 22:02:06 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:swap_vma_readahead - swap in pages in hope we need them soon*@entry: swap entry of this memory*@gfp_mask: memory allocation flags*@vmf: fault information* Returns the struct page for entry and addr, after queueing swapin.* Primitive swap readahead code
Proto:static struct page *swap_vma_readahead(swp_entry_t fentry, gfp_t gfp_mask, struct vm_fault *vmf)
Type:struct page
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| swp_entry_t | fentry | |
| gfp_t | gfp_mask | |
| struct vm_fault * | vmf | 
| 726 | vma = Target VMA | 
| 732 | struct vma_swap_readahead ra_info = {0, } | 
| 734 | swap_ra_info(vmf, & ra_info) | 
| 738 | blk_start_plug( & plug) | 
| 744 | If pte_present(pentry) Then Continue | 
| 746 | entry = Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t. | 
| 747 | If Value for the false possibility is greater at compile time(non_swap_entry(entry)) Then Continue | 
| 749 | page = __read_swap_cache_async(entry, gfp_mask, vma, Faulting virtual address , & page_allocated) | 
| 751 | If Not page Then Continue | 
| 753 | If page_allocated Then | 
| 754 | swap_readpage(page, false) | 
| 756 | SetPageReadahead(page) | 
| 757 | Disable counters | 
| 762 | blk_finish_plug( & plug) | 
| 763 | lru_add_drain() | 
| 764 | skip : | 
| Name | Describe | 
|---|---|
| swapin_readahead | swapin_readahead - swap in pages in hope we need them soon*@entry: swap entry of this memory*@gfp_mask: memory allocation flags*@vmf: fault information* Returns the struct page for entry and addr, after queueing swapin. | 
| 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  |