Function report |
Source Code:mm\swap_state.c |
Create Date:2022-07-28 15:15:06 |
Last Modify:2020-03-17 22:02:06 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:swap_ra_info
Proto:static void swap_ra_info(struct vm_fault *vmf, struct vma_swap_readahead *ra_info)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct vm_fault * | vmf | |
struct vma_swap_readahead * | ra_info |
643 | vma = Target VMA |
656 | If max_win == 1 Then |
657 | win = 1 |
658 | Return |
663 | entry = Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t. |
671 | pfn = PFN_DOWN(SWAP_RA_ADDR(ra_val)) |
672 | prev_win = SWAP_RA_WIN(ra_val) |
673 | hits = SWAP_RA_HITS(ra_val) |
676 | atomic_long_set( & swap_readahead_info, SWAP_RA_VAL(faddr, win, 0)) |
679 | If win == 1 Then |
687 | Else if pfn == fpfn + 1 Then swap_ra_clamp_pfn(vma, faddr, fpfn - win + 1, fpfn + 1, & start, & end) |
690 | Else |
Name | Describe |
---|---|
swap_vma_readahead | 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 |
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 |