函数逻辑报告 |
Source Code:mm\swap_state.c |
Create Date:2022-07-27 16:44:50 |
Last Modify:2020-03-17 22:02:06 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:This must be called only on pages that have* been verified to be in the swap cache.
函数原型:void __delete_from_swap_cache(struct page *page, swp_entry_t entry)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page * | page | |
swp_entry_t | 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) |
名称 | 描述 |
---|---|
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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |