Function report | 
Source Code:mm\frontswap.c | 
Create Date:2022-07-28 15:21:26 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:"Get" data from frontswap associated with swaptype and offset that were* specified when the data was put to frontswap and use it to fill the* specified page with data. Page must be locked and in the swap cache.
Proto:int __frontswap_load(struct page *page)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct page * | page | 
| 296 | ret = -1 | 
| 297 | swp_entry_t entry = {val = page_private(page), } | 
| 298 | type = Extract the `type' field from a swp_entry_t. The swp_entry_t is in* arch-independent format | 
| 300 | offset = Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format | 
| 304 | VM_BUG_ON(!PageLocked(page)) | 
| 307 | If Not __frontswap_test(sis, offset) Then Return -1 | 
| 313 | If Not ret Then Break | 
| 316 | If ret == 0 Then | 
| 317 | inc_frontswap_loads() | 
| 319 | SetPageDirty(page) | 
| 320 | __frontswap_clear(sis, offset) | 
| 323 | Return ret | 
| 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  |