Function report |
Source Code:mm\swap_state.c |
Create Date:2022-07-28 15:14:31 |
| Last Modify:2020-03-17 22:02:06 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This must be called only on pages that have* been verified to be in the swap cache.
Proto:void __delete_from_swap_cache(struct page *page, swp_entry_t entry)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct page * | page | |
| swp_entry_t | entry |
| 160 | address_space = swap_address_space(entry) |
| 161 | nr = hpage_nr_pages(page) |
| 162 | idx = Extract the `offset' field from a swp_entry_t. The swp_entry_t is in* arch-independent format |
| 165 | VM_BUG_ON_PAGE(!PageLocked(page), page) |
| 166 | VM_BUG_ON_PAGE(!PageSwapCache(page), page) |
| 167 | VM_BUG_ON_PAGE(Only test-and-set exist for PG_writeback. The unconditional operators are* risky: they bypass page accounting., page) |
| 171 | VM_BUG_ON_PAGE(entry != page, entry) |
| 172 | set_page_private(page + i, 0) |
| 175 | ClearPageSwapCache(page) |
| 177 | __mod_node_page_state(page_pgdat(page), NR_FILE_PAGES, - nr) |
| 178 | ADD_CACHE_INFO(del_total, nr) |
| Name | Describe |
|---|---|
| delete_from_swap_cache | This must be called only on pages that have* been verified to be in the swap cache and locked.* It will never put the page into the free list,* the caller has a reference on the page. |
| 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 |